summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_genericpath.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_genericpath.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_genericpath.py')
-rw-r--r--Lib/test/test_genericpath.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_genericpath.py b/Lib/test/test_genericpath.py
index 600ffc0..b1ee110 100644
--- a/Lib/test/test_genericpath.py
+++ b/Lib/test/test_genericpath.py
@@ -313,6 +313,8 @@ class CommonTest(GenericTest):
def test_nonascii_abspath(self):
if support.TESTFN_UNDECODABLE:
name = support.TESTFN_UNDECODABLE
+ elif support.TESTFN_NONASCII:
+ name = support.TESTFN_NONASCII
else:
name = b'a\xffb\xe7w\xf0'