mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #22042: Fix test_signal on Windows
This commit is contained in:
parent
3822760f2d
commit
7cea44d3cf
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue