]> granicus.if.org Git - python/commitdiff
Backed out changeset c4c1c4bc8086
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 9 Dec 2013 00:59:07 +0000 (01:59 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 9 Dec 2013 00:59:07 +0000 (01:59 +0100)
Lib/test/test_selectors.py

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