mirror of https://github.com/python/cpython.git
Issue #27186: skip bytes path test for os.scandir() on Windows
This commit is contained in:
parent
f84f259b0b
commit
41ae559108
|
@ -2953,6 +2953,7 @@ def test_fspath_protocol(self):
|
||||||
entry = self.create_file_entry()
|
entry = self.create_file_entry()
|
||||||
self.assertEqual(os.fspath(entry), os.path.join(self.path, 'file.txt'))
|
self.assertEqual(os.fspath(entry), os.path.join(self.path, 'file.txt'))
|
||||||
|
|
||||||
|
@unittest.skipIf(sys.platform == "nt", "test requires bytes path support")
|
||||||
def test_fspath_protocol_bytes(self):
|
def test_fspath_protocol_bytes(self):
|
||||||
bytes_filename = os.fsencode('bytesfile.txt')
|
bytes_filename = os.fsencode('bytesfile.txt')
|
||||||
bytes_entry = self.create_file_entry(name=bytes_filename)
|
bytes_entry = self.create_file_entry(name=bytes_filename)
|
||||||
|
|
Loading…
Reference in New Issue