mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Issue #27186: Skip scandir(bytes) test with os.name == "nt"
This commit is contained in:
parent
544272aff7
commit
0c9ad59dab
1 changed files with 1 additions and 1 deletions
|
@ -2953,7 +2953,7 @@ class TestScandir(unittest.TestCase):
|
||||||
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")
|
@unittest.skipIf(os.name == "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…
Add table
Add a link
Reference in a new issue