summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-06-13 03:28:35 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-06-13 03:28:35 (GMT)
commit0c9ad59dabcb4011a35d16214bafabb47b112ea5 (patch)
tree182106534b0bf16906e29933b46916e2902df9fb /Lib/test/test_os.py
parent544272aff708a71a74089b5d4982f292100a3325 (diff)
downloadcpython-0c9ad59dabcb4011a35d16214bafabb47b112ea5.zip
cpython-0c9ad59dabcb4011a35d16214bafabb47b112ea5.tar.gz
cpython-0c9ad59dabcb4011a35d16214bafabb47b112ea5.tar.bz2
Issue #27186: Skip scandir(bytes) test with os.name == "nt"
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r--Lib/test/test_os.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 352ffd2..d34f6c6 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -2953,7 +2953,7 @@ class TestScandir(unittest.TestCase):
entry = self.create_file_entry()
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):
bytes_filename = os.fsencode('bytesfile.txt')
bytes_entry = self.create_file_entry(name=bytes_filename)