[issue1812] doctest _load_testfile function -- newline handling seems incorrect
Peter Donis
report at bugs.python.org
Sat Jan 12 19:32:34 CET 2008
Peter Donis added the comment:
I've uploaded a revised diff with two small improvements:
(1) Removed a redundant os.isfile check in
PackageLoaderTestImporter.get_data() in doctest_testfile.py. (The
open() builtin already raises IOError if the file can't be opened.)
(2) Added doctest.master = None in three places in doctest_testfile.py
so the expected output is now nothing instead of three lines of
*** DocTestRunner.merge: 'doctest_testfile.txt' in both testers;
summing outcomes.
Changed the expected output in test_doctest.py to correspond.
Added file: http://bugs.python.org/file9142/doctest-fixes1.diff
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1812>
__________________________________
More information about the Python-bugs-list
mailing list