diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-01-03 01:50:30 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-01-03 01:50:30 +0100 |
commit | 0af71aae2d914e0833edfc344b493bbb74292645 (patch) | |
tree | a9bccf0699316568893c77a121f15905d79337c0 /Lib/test/test_os.py | |
parent | 20b654acb50cf59a4b8f8058db5f6b8162bdb91b (diff) | |
download | cpython-git-0af71aae2d914e0833edfc344b493bbb74292645.tar.gz |
Issue #16218, #16414, #16444: Backport FS_NONASCII, TESTFN_UNDECODABLE,
TESTFN_NONASCII of test.support from Python 3.4. Backport tests on non-ASCII
paths.
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r-- | Lib/test/test_os.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index bd799b2040..720e78b317 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -1013,6 +1013,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) @@ -1027,6 +1029,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") |