Mailing List Archive

python/dist/src/Lib/test test_unicode_file.py,1.5,1.6
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv29768/Lib/test

Modified Files:
test_unicode_file.py
Log Message:
Patch 594001: PEP 277 - Unicode file name support for Windows NT.


Index: test_unicode_file.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_unicode_file.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** test_unicode_file.py 23 Jul 2002 19:04:08 -0000 1.5
--- test_unicode_file.py 3 Oct 2002 05:10:38 -0000 1.6
***************
*** 41,44 ****
--- 41,48 ----

# Test rename
+ try:
+ os.unlink(TESTFN_ENCODED + ".new")
+ except os.error:
+ pass
os.rename(TESTFN_ENCODED, TESTFN_ENCODED + ".new")
os.rename(TESTFN_UNICODE+".new", TESTFN_ENCODED)