From 383bff4d740c2ee154c230f62fc28f5baa09fa10 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 9 Dec 2013 01:59:07 +0100 Subject: [PATCH] Backed out changeset c4c1c4bc8086 --- Lib/test/test_selectors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_selectors.py b/Lib/test/test_selectors.py index 68e2b991ec..34edd7630d 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) -- 2.40.0