From: Victor Stinner Date: Mon, 9 Dec 2013 00:57:14 +0000 (+0100) Subject: Issue #19876: Run also test_selectors.test_unregister_after_fd_close_and_reuse()... X-Git-Tag: v3.4.0b2~286 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1adc2371b8117dd86fa4a9dbe1425e6c11fffbc4;p=python Issue #19876: Run also test_selectors.test_unregister_after_fd_close_and_reuse() on Windows os.dup2() is available on Windows. --- diff --git a/Lib/test/test_selectors.py b/Lib/test/test_selectors.py index 34edd7630d..68e2b991ec 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(os.name == 'posix', "requires posix") + @unittest.skipUnless(hasattr(os, 'dup2'), "need os.dup2()") def test_unregister_after_fd_close_and_reuse(self): s = self.SELECTOR() self.addCleanup(s.close)