summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2012-11-06 22:23:43 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2012-11-06 22:23:43 (GMT)
commit8b219b2936d767bf6c6c17618db3a7b22fc2e865 (patch)
tree717f4aa9f9aa97ffb916269572869b55018c831c /Lib/test/test_os.py
parentdf1d940c7c59398717a1b63d8681f26aeae48b87 (diff)
downloadcpython-8b219b2936d767bf6c6c17618db3a7b22fc2e865.zip
cpython-8b219b2936d767bf6c6c17618db3a7b22fc2e865.tar.gz
cpython-8b219b2936d767bf6c6c17618db3a7b22fc2e865.tar.bz2
Issue #16414: Add support.FS_NONASCII and support.TESTFN_NONASCII
These constants are used to test functions with non-ASCII data, especially filenames.
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 9cf4070..ee19da3 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")