changeset: 101971:f384c5c14488 parent: 101961:0b18f7d262cc user: Martin Panter date: Mon Jun 13 03:28:35 2016 +0000 files: Lib/test/test_os.py description: Issue #27186: Skip scandir(bytes) test with os.name == "nt" diff -r 0b18f7d262cc -r f384c5c14488 Lib/test/test_os.py --- a/Lib/test/test_os.py Sun Jun 12 13:23:15 2016 -0700 +++ b/Lib/test/test_os.py Mon Jun 13 03:28:35 2016 +0000 @@ -2953,7 +2953,7 @@ 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)