summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2012-11-12 00:23:15 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2012-11-12 00:23:15 (GMT)
commite667e98faad93e76b8b569d853eb02d91591f5fb (patch)
tree009075f72468af1156312858aada27dd389678f3 /Lib/test/test_os.py
parent37bfa4e7ec5df1528aa208150933a3fc54508cf9 (diff)
downloadcpython-e667e98faad93e76b8b569d853eb02d91591f5fb.zip
cpython-e667e98faad93e76b8b569d853eb02d91591f5fb.tar.gz
cpython-e667e98faad93e76b8b569d853eb02d91591f5fb.tar.bz2
Issue #16218, #16444: Backport improvment on tests for non-ASCII characters
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r--Lib/test/test_os.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 7d6b377..13a2b38 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -1243,6 +1243,8 @@ if sys.platform != 'win32':
def setUp(self):
if support.TESTFN_UNENCODABLE:
self.dir = support.TESTFN_UNENCODABLE
+ elif support.TESTFN_NONASCII:
+ self.dir = support.TESTFN_NONASCII
else:
self.dir = support.TESTFN
self.bdir = os.fsencode(self.dir)
@@ -1257,6 +1259,8 @@ if sys.platform != 'win32':
add_filename(support.TESTFN_UNICODE)
if support.TESTFN_UNENCODABLE:
add_filename(support.TESTFN_UNENCODABLE)
+ if support.TESTFN_NONASCII:
+ add_filename(support.TESTFN_NONASCII)
if not bytesfn:
self.skipTest("couldn't create any non-ascii filename")