diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 0b95d2b49..92e2244f7 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -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')