[Python-checkins]
python/dist/src/Lib/test test_unicode_file.py, 1.9, 1.9.10.1
mhammond at users.sourceforge.net
mhammond at users.sourceforge.net
Tue Aug 5 20:47:59 EDT 2003
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv23796/Lib/test
Modified Files:
Tag: release23-maint
test_unicode_file.py
Log Message:
Demonstrate and fix [ 783882 ] os.lstat crashes with Unicode filename.
Also checked in on trunk.
Index: test_unicode_file.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_unicode_file.py,v
retrieving revision 1.9
retrieving revision 1.9.10.1
diff -C2 -d -r1.9 -r1.9.10.1
*** test_unicode_file.py 24 Apr 2003 16:02:53 -0000 1.9
--- test_unicode_file.py 6 Aug 2003 02:47:57 -0000 1.9.10.1
***************
*** 26,29 ****
--- 26,31 ----
if os.stat(TESTFN_ENCODED) != os.stat(TESTFN_UNICODE):
print "os.stat() did not agree on the 2 filenames"
+ if os.lstat(TESTFN_ENCODED) != os.lstat(TESTFN_UNICODE):
+ print "os.lstat() did not agree on the 2 filenames"
os.chmod(TESTFN_ENCODED, 0777)
os.chmod(TESTFN_UNICODE, 0777)
More information about the Python-checkins
mailing list