cpython: f5f5553f219e (original) (raw)
Mercurial > cpython
changeset 92252:f5f5553f219e
Issue #22042: Fix test_signal on Windows [#22042]
Victor Stinner victor.stinner@gmail.com | |
---|---|
date | Wed, 27 Aug 2014 14:02:36 +0200 |
parents | d984dfe8c34e |
children | fb3aee1cff59 |
files | Lib/test/test_signal.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-)[+] [-] Lib/test/test_signal.py 5 |
line wrap: on
line diff
--- 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)[](#l1.7)
os.set_blocking(w2, False)[](#l1.8)
if hasattr(os, 'set_blocking'):[](#l1.9)
os.set_blocking(w1, False)[](#l1.10)
os.set_blocking(w2, False)[](#l1.11)
signal.set_wakeup_fd(w1) self.assertEqual(signal.set_wakeup_fd(w2), w1)