Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1adc237

Browse files
committed
Issue #19876: Run also test_selectors.test_unregister_after_fd_close_and_reuse() on Windows
os.dup2() is available on Windows.
1 parent 031bd53 commit 1adc237

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_selectors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def test_unregister_after_fd_close(self):
109109
s.unregister(r)
110110
s.unregister(w)
111111

112-
@unittest.skipUnless(os.name == 'posix', "requires posix")
112+
@unittest.skipUnless(hasattr(os, 'dup2'), "need os.dup2()")
113113
def test_unregister_after_fd_close_and_reuse(self):
114114
s = self.SELECTOR()
115115
self.addCleanup(s.close)

0 commit comments

Comments
 (0)