New submission from alejandro david weil:
Add some 5% more code-coverage for imp module in tests.
--
components: Tests
files: imp_test_patch.diff
keywords: patch
messages: 175597
nosy: brett.cannon, tenuki
priority: normal
severity: normal
status: open
title: More code coverage for imp
New submission from alejandro david weil :
python 2.7 documentation:
file:///usr/share/doc/python-doc/html/library/stringio.html#StringIO.StringIO.close
(or: http://docs.python.org/library/stringio.html#StringIO.StringIO.close )
says:
"""StringIO.close()
Free the memory buffer
alejandro david weil added the comment:
Yes it is. I copied both versions but forgot to specify the second is in 2.7.
This is read in the current (2.7) documentation:
# from: http://docs.python.org/library/functions.html?highlight=xrange#xrange
islice(count(start, step), (stop-start+step-1
New submission from alejandro david weil :
Python's documentation includes 2 source codes for alternate xrange
implementations, which, at least in my tests, give unexpected results.
# from file:///usr/share/doc/python2.6-doc/html/library/functions.html#xrange
takewhile(lambda x:
alejandro david weil <[EMAIL PROTECTED]> added the comment:
Some debugging helper code and my conclutions of one work day:
debughelper.tgZ:
-test_broken1/2.py
one does triggers the bug, the other doesn't)
-rtest.sh
executes boths and compares its outputs
-frameob
alejandro david weil <[EMAIL PROTECTED]> added the comment:
Shorter trigger code..
--
nosy: +tenuki
Added file: http://bugs.python.org/file10698/test_broken3.py
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.pytho