[Python-checkins] cpython: Issue #19876: Run also

victor.stinner python-checkins at python.org
Mon Dec 9 01:57:33 CET 2013


http://hg.python.org/cpython/rev/c4c1c4bc8086
changeset:   87847:c4c1c4bc8086
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Mon Dec 09 01:57:14 2013 +0100
summary:
  Issue #19876: Run also test_selectors.test_unregister_after_fd_close_and_reuse() on Windows

os.dup2() is available on Windows.

files:
  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
--- a/Lib/test/test_selectors.py
+++ b/Lib/test/test_selectors.py
@@ -109,7 +109,7 @@
         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)

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list