From 7a890256aae9bb7c0d97187b155f3bd7971bc63c Mon Sep 17 00:00:00 2001 From: Dean Li Date: Sun, 4 Apr 2021 22:29:04 +0800 Subject: [PATCH] Fix skip condition for `test_fd` --- Lib/test/test_os.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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')