From: Martin Panter Date: Mon, 13 Jun 2016 03:28:35 +0000 (+0000) Subject: Issue #27186: Skip scandir(bytes) test with os.name == "nt" X-Git-Tag: v3.6.0a2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0c9ad59dabcb4011a35d16214bafabb47b112ea5;p=python Issue #27186: Skip scandir(bytes) test with os.name == "nt" --- diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 352ffd2edd..d34f6c6432 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)