summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_selectors.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_selectors.py')
-rw-r--r--Lib/test/test_selectors.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_selectors.py b/Lib/test/test_selectors.py
index 68e2b99..34edd76 100644
--- a/Lib/test/test_selectors.py
+++ b/Lib/test/test_selectors.py
@@ -109,7 +109,7 @@ class BaseSelectorTestCase(unittest.TestCase):
s.unregister(r)
s.unregister(w)
- @unittest.skipUnless(hasattr(os, 'dup2'), "need os.dup2()")
+ @unittest.skipUnless(os.name == 'posix', "requires posix")
def test_unregister_after_fd_close_and_reuse(self):
s = self.SELECTOR()
self.addCleanup(s.close)