mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Don't try to convert the test filename to Unicode with -U.
This commit is contained in:
parent
774348c8d6
commit
2411a2dd82
1 changed files with 6 additions and 1 deletions
|
@ -92,7 +92,12 @@ elif os.name != 'riscos':
|
|||
TESTFN = '@test'
|
||||
# Unicode name only used if TEST_FN_ENCODING exists for the platform.
|
||||
if have_unicode:
|
||||
TESTFN_UNICODE=unicode("@test-\xe0\xf2", "latin-1") # 2 latin characters.
|
||||
if isinstance('', unicode):
|
||||
# python -U
|
||||
# XXX perhaps unicode() should accept Unicode strings?
|
||||
TESTFN_UNICODE="@test-\xe0\xf2"
|
||||
else:
|
||||
TESTFN_UNICODE=unicode("@test-\xe0\xf2", "latin-1") # 2 latin characters.
|
||||
if os.name=="nt":
|
||||
TESTFN_ENCODING="mbcs"
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue