[Python-Dev] RE: test_unicode_file failing on trunk, Win98SE

Mark Hammond mhammond at skippinet.com.au
Wed Dec 3 17:22:12 EST 2003


> C:\Code\python\PCbuild>python ../lib/test/test_unicode_file.py
> test_directories (__main__.TestUnicodeFiles) ... ERROR
> test_equivalent_files (__main__.TestUnicodeFiles) ... ok
> test_single_files (__main__.TestUnicodeFiles) ... ERROR

My apologies - I have fixed it (I hope! No Win98 SE here for me to test on)

Note the error was in the test suite semantics only, not the core code.

> OSError: [Errno 2] No such file or directory: '@test-?????.dir'

Interestingly, this is yet another bug.  The error you *should* have got is
a UnicodeDecodeError.  However, the Windows 'mbcs' encoding currently acts
as if in errors=replace mode.  See 850997.  That is really neither here nor
there tho - all it does is change the error you get when passing a Unicode
filename.

> Don't know about 2.3 maint, & can't test that today:

The fix to posixmodule was checked into both head and 2.3-maint, but the
test suite changes were only made to head - for exactly this reason <wink>.
Thus, 2.3 should be fine.

Please let me know if there are still errors.

Thanks,

Mark.




More information about the Python-Dev mailing list