diff options
author | Mark Hammond <mhammond@skippinet.com.au> | 2002-10-03 05:10:39 (GMT) |
---|---|---|
committer | Mark Hammond <mhammond@skippinet.com.au> | 2002-10-03 05:10:39 (GMT) |
commit | c2e85bd4e20dc3b5bc446a705a46397c799f56c0 (patch) | |
tree | 8db1cdb9fedfe47739b9ace6da4df65389da3567 /Lib/test/test_unicode_file.py | |
parent | eb287a26621001fb5d945b7b6246ccac77378cc7 (diff) | |
download | cpython-c2e85bd4e20dc3b5bc446a705a46397c799f56c0.zip cpython-c2e85bd4e20dc3b5bc446a705a46397c799f56c0.tar.gz cpython-c2e85bd4e20dc3b5bc446a705a46397c799f56c0.tar.bz2 |
Patch 594001: PEP 277 - Unicode file name support for Windows NT.
Diffstat (limited to 'Lib/test/test_unicode_file.py')
-rw-r--r-- | Lib/test/test_unicode_file.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_unicode_file.py b/Lib/test/test_unicode_file.py index a0de139..4bafd98 100644 --- a/Lib/test/test_unicode_file.py +++ b/Lib/test/test_unicode_file.py @@ -40,6 +40,10 @@ os.chmod(TESTFN_ENCODED, 0777) os.chmod(TESTFN_UNICODE, 0777) # 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) |