summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMark Hammond <mhammond@skippinet.com.au>2003-08-06 02:46:58 (GMT)
committerMark Hammond <mhammond@skippinet.com.au>2003-08-06 02:46:58 (GMT)
commit7edd0a9b21d28fceed4594332b72e794242ce0e0 (patch)
tree3d22acf2cfaf6191dc05f4c3b38fa46f21c534fd /Lib
parent5301d9c10d4a386f8889722cd9aba903ccaed17d (diff)
downloadcpython-7edd0a9b21d28fceed4594332b72e794242ce0e0.zip
cpython-7edd0a9b21d28fceed4594332b72e794242ce0e0.tar.gz
cpython-7edd0a9b21d28fceed4594332b72e794242ce0e0.tar.bz2
Demonstrate and fix [ 783882 ] os.lstat crashes with Unicode filename.
Will also check in on the 2.3 branch.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_unicode_file.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_unicode_file.py b/Lib/test/test_unicode_file.py
index 23fe1f4..b8b1848 100644
--- a/Lib/test/test_unicode_file.py
+++ b/Lib/test/test_unicode_file.py
@@ -25,6 +25,8 @@ f.close()
# Test stat and chmod
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)