[Python-checkins] cpython: Issue #27186: Skip scandir(bytes) test with os.name == "nt"
martin.panter
python-checkins at python.org
Sun Jun 12 23:38:18 EDT 2016
https://hg.python.org/cpython/rev/f384c5c14488
changeset: 101971:f384c5c14488
parent: 101961:0b18f7d262cc
user: Martin Panter <vadmium+py at gmail.com>
date: Mon Jun 13 03:28:35 2016 +0000
summary:
Issue #27186: Skip scandir(bytes) test with os.name == "nt"
files:
Lib/test/test_os.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -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)
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list