summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_signal.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-08-27 12:02:36 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-08-27 12:02:36 (GMT)
commit7cea44d3cfa216c63c78ee3262989c1a2d563121 (patch)
tree7bb462a3a3b49a96b93353557e185532af9325c8 /Lib/test/test_signal.py
parent3822760f2d6ce4ab61daab2ab5ebc83bea839e92 (diff)
downloadcpython-7cea44d3cfa216c63c78ee3262989c1a2d563121.zip
cpython-7cea44d3cfa216c63c78ee3262989c1a2d563121.tar.gz
cpython-7cea44d3cfa216c63c78ee3262989c1a2d563121.tar.bz2
Issue #22042: Fix test_signal on Windows
Diffstat (limited to 'Lib/test/test_signal.py')
-rw-r--r--Lib/test/test_signal.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py
index 812bd90..8f3dde4 100644
--- a/Lib/test/test_signal.py
+++ b/Lib/test/test_signal.py
@@ -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)