summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_selectors.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-12-09 00:57:14 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-12-09 00:57:14 (GMT)
commit1adc2371b8117dd86fa4a9dbe1425e6c11fffbc4 (patch)
treefcb872d45d6f80789c26dcf329651a296cc907b8 /Lib/test/test_selectors.py
parent031bd532c48cf20a9cbf438bdae75dde49e36c51 (diff)
downloadcpython-1adc2371b8117dd86fa4a9dbe1425e6c11fffbc4.zip
cpython-1adc2371b8117dd86fa4a9dbe1425e6c11fffbc4.tar.gz
cpython-1adc2371b8117dd86fa4a9dbe1425e6c11fffbc4.tar.bz2
Issue #19876: Run also test_selectors.test_unregister_after_fd_close_and_reuse() on Windows
os.dup2() is available on Windows.
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 34edd76..68e2b99 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)