diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-12-09 00:57:14 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-12-09 00:57:14 (GMT) |
commit | 1adc2371b8117dd86fa4a9dbe1425e6c11fffbc4 (patch) | |
tree | fcb872d45d6f80789c26dcf329651a296cc907b8 /Lib/test/test_selectors.py | |
parent | 031bd532c48cf20a9cbf438bdae75dde49e36c51 (diff) | |
download | cpython-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.py | 2 |
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) |