]> granicus.if.org Git - python/commitdiff
Issue #19876: Run also test_selectors.test_unregister_after_fd_close_and_reuse()...
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 9 Dec 2013 00:57:14 +0000 (01:57 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 9 Dec 2013 00:57:14 +0000 (01:57 +0100)
os.dup2() is available on Windows.

Lib/test/test_selectors.py

index 34edd7630ddd89ac68eee60f7ea50f45894597e0..68e2b991ec74d0e23b803740ec8a879aae8217cc 100644 (file)
@@ -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)