Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update test_genericpath
  • Loading branch information
shihai1991 committed Jun 4, 2020
commit 0d7a244923425448f48aca43a515fd73d035782d
4 changes: 2 additions & 2 deletions Lib/test/test_genericpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,13 +475,13 @@ def test_abspath_issue3426(self):
self.assertIsInstance(abspath(path), str)

def test_nonascii_abspath(self):
if (filesystem_helper.TESTFN_UNDECODABLE
if (support.TESTFN_UNDECODABLE
# Mac OS X denies the creation of a directory with an invalid
# UTF-8 name. Windows allows creating a directory with an
# arbitrary bytes name, but fails to enter this directory
# (when the bytes name is used).
and sys.platform not in ('win32', 'darwin')):
name = filesystem_helper.TESTFN_UNDECODABLE
name = support.TESTFN_UNDECODABLE
elif filesystem_helper.TESTFN_NONASCII:
name = filesystem_helper.TESTFN_NONASCII
else:
Expand Down