mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
Fix skip condition for test_fd
This commit is contained in:
@@ -3958,8 +3958,8 @@ class TestScandir(unittest.TestCase):
|
||||
self.assertIs(type(entry.name), bytes)
|
||||
self.assertIs(type(entry.path), bytes)
|
||||
|
||||
@unittest.skipUnless(os.listdir in os.supports_fd,
|
||||
'fd support for listdir required for this test.')
|
||||
@unittest.skipUnless(os.scandir in os.supports_fd,
|
||||
'fd support for scandir required for this test.')
|
||||
def test_fd(self):
|
||||
self.assertIn(os.scandir, os.supports_fd)
|
||||
self.create_file('file.txt')
|
||||
|
||||
Reference in New Issue
Block a user