Issue #19876: Run also test_selectors.test_unregister_after_fd_close_and_reuse() on Windows

os.dup2() is available on Windows.
This commit is contained in:
Victor Stinner 2013-12-09 01:57:14 +01:00
parent 031bd532c4
commit 1adc2371b8
1 changed files with 1 additions and 1 deletions

View 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)