Amaury Forgeot d'Arc <amaur...@gmail.com> added the comment: The problem is probably near this code in Lib/doctest.py (in _load_testfile)::
# get_data() opens files as 'rb', so one must do the equivalent # conversion as universal newlines would do. return file_contents.replace(os.linesep, '\n'), filename probably something like this would be better:: file_contents.replace('\r\n', '\n').replace('\r', '\n') ---------- nosy: +amaury.forgeotdarc _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12189> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com