mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Patch 594001: PEP 277 - Unicode file name support for Windows NT.
This commit is contained in:
parent
eb287a2662
commit
c2e85bd4e2
6 changed files with 568 additions and 44 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue