Peter Donis <peterdo...@alum.mit.edu> added the comment: Re my msg110822, I think I have a better solution: have the test create a temporary txt file with intentionally mismatched newlines, and use that as the doctest. That means we can control the exact byte by byte content of the txt file, without worrying about how it is stored/transferred, etc. I've attached a Python 2.7 patch, doctest-fixes4.diff, which implements this test method (same actual tests as before, just the setup/cleanup is changed); the test passes on my machine. The test code in this patch also includes comments explaining why this approach is taken.
---------- Added file: http://bugs.python.org/file18117/doctest-fixes4.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1812> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com