summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2016-06-12 18:11:20 (GMT)
committerBrett Cannon <brett@python.org>2016-06-12 18:11:20 (GMT)
commit41ae559108a9249bfbc2af2b06e38dde310a6af6 (patch)
treeb8d482719408d0fd6e23366cd4364d5ee22bbe77
parentf84f259b0bc0fcf41ec243d9b6f3f0463d388eb7 (diff)
downloadcpython-41ae559108a9249bfbc2af2b06e38dde310a6af6.zip
cpython-41ae559108a9249bfbc2af2b06e38dde310a6af6.tar.gz
cpython-41ae559108a9249bfbc2af2b06e38dde310a6af6.tar.bz2
Issue #27186: skip bytes path test for os.scandir() on Windows
-rw-r--r--Lib/test/test_os.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 3f95571..352ffd2 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -2953,6 +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")
def test_fspath_protocol_bytes(self):
bytes_filename = os.fsencode('bytesfile.txt')
bytes_entry = self.create_file_entry(name=bytes_filename)