Kaydet (Commit) 7cea44d3 authored tarafından Victor Stinner's avatar Victor Stinner

Issue #22042: Fix test_signal on Windows

üst 3822760f
......@@ -271,8 +271,9 @@ class WakeupFDTests(unittest.TestCase):
self.addCleanup(os.close, r2)
self.addCleanup(os.close, w2)
os.set_blocking(w1, False)
os.set_blocking(w2, False)
if hasattr(os, 'set_blocking'):
os.set_blocking(w1, False)
os.set_blocking(w2, False)
signal.set_wakeup_fd(w1)
self.assertEqual(signal.set_wakeup_fd(w2), w1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment