From: Brett Cannon Date: Sun, 12 Jun 2016 18:11:20 +0000 (-0700) Subject: Issue #27186: skip bytes path test for os.scandir() on Windows X-Git-Tag: v3.6.0a2~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=41ae559108a9249bfbc2af2b06e38dde310a6af6;p=thirdparty%2FPython%2Fcpython.git Issue #27186: skip bytes path test for os.scandir() on Windows --- diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 3f955713c431..352ffd2edd11 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)