[Python-3000] [Python-Dev] Need help fixing failing Py3k Unittests in py3k-struni

Amaury Forgeot d'Arc amauryfa at gmail.com
Wed Jul 11 20:33:46 CEST 2007


Hi,

Thomas Heller wrote:
> The most important problem, IMO, is now that wide filenames on Windows are not
> implemented, see the code starting at line 148 in _fileio.c.  This prevents
> most unittests to run because test_support cannot be imported:
>
> C:\svn\py3k-struni\PCbuild>python  -E -tt ../lib/test/regrtest.py
> Traceback (most recent call last):
>   File "../lib/test/regrtest.py", line 165, in <module>
>     from test import test_support
>   File "C:\svn\py3k-struni\lib\test\test_support.py", line 182, in <module>
>     fp = open(TESTFN, 'w+')
>   File "C:\svn\py3k-struni\lib\site.py", line 412, in __new__
>     return io.open(*args, **kwds)
>   File "C:\svn\py3k-struni\lib\io.py", line 122, in open
>     (updating and "+" or ""))
> NotImplementedError: Windows wide filenames are not yet supported

The attached patch corrects this. Now open() accept both unicode
strings and bytes objects.

-- 
Amaury Forgeot d'Arc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fileio-1.diff
Type: application/octet-stream
Size: 1473 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-3000/attachments/20070711/5bb54244/attachment.obj 


More information about the Python-3000 mailing list