The real bug (issue #15478) has been fixed correctly.
This commit is contained in:
parent
afe1706457
commit
fce2a6e0c0
@ -311,14 +311,10 @@ class CommonTest(GenericTest):
|
|||||||
@unittest.skipIf(sys.platform == 'darwin',
|
@unittest.skipIf(sys.platform == 'darwin',
|
||||||
"Mac OS X denies the creation of a directory with an invalid utf8 name")
|
"Mac OS X denies the creation of a directory with an invalid utf8 name")
|
||||||
def test_nonascii_abspath(self):
|
def test_nonascii_abspath(self):
|
||||||
name = b'\xe7w\xf0'
|
if support.TESTFN_UNDECODABLE:
|
||||||
if sys.platform == 'win32':
|
name = support.TESTFN_UNDECODABLE
|
||||||
try:
|
else:
|
||||||
os.fsdecode(name)
|
name = b'a\xffb\xe7w\xf0'
|
||||||
except UnicodeDecodeError:
|
|
||||||
self.skipTest("the filename %a is not decodable "
|
|
||||||
"from the ANSI code page %s"
|
|
||||||
% (name, sys.getfilesystemencoding()))
|
|
||||||
|
|
||||||
# Test non-ASCII, non-UTF8 bytes in the path.
|
# Test non-ASCII, non-UTF8 bytes in the path.
|
||||||
with warnings.catch_warnings():
|
with warnings.catch_warnings():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user