]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #27186: skip bytes path test for os.scandir() on Windows
authorBrett Cannon <brett@python.org>
Sun, 12 Jun 2016 18:11:20 +0000 (11:11 -0700)
committerBrett Cannon <brett@python.org>
Sun, 12 Jun 2016 18:11:20 +0000 (11:11 -0700)
Lib/test/test_os.py

index 3f955713c431e0f2201a3ba5410603f229d5bedd..352ffd2edd11b3e6f1ea62230c937ad00aadd05f 100644 (file)
@@ -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)