projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
544272a
)
Issue #27186: Skip scandir(bytes) test with os.name == "nt"
author
Martin Panter
<vadmium+py@gmail.com>
Mon, 13 Jun 2016 03:28:35 +0000
(
03:28
+0000)
committer
Martin Panter
<vadmium+py@gmail.com>
Mon, 13 Jun 2016 03:28:35 +0000
(
03:28
+0000)
Lib/test/test_os.py
patch
|
blob
|
history
diff --git
a/Lib/test/test_os.py
b/Lib/test/test_os.py
index 352ffd2edd11b3e6f1ea62230c937ad00aadd05f..d34f6c64326e6bb3ed074a71a4d27774dea045e0 100644
(file)
--- 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)