From: Victor Stinner Date: Mon, 21 Jul 2014 15:17:28 +0000 (+0200) Subject: Issue #22018: Hum, set_wakeup_fd() still raises ValueError on Windows X-Git-Tag: v3.5.0a1~1250 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a7d03d98c93c960039d2fae8ca3b375092cdcd49;p=python Issue #22018: Hum, set_wakeup_fd() still raises ValueError on Windows --- diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py index e40dfb5658..56ab6316b6 100644 --- a/Lib/test/test_signal.py +++ b/Lib/test/test_signal.py @@ -252,7 +252,8 @@ class WakeupFDTests(unittest.TestCase): def test_invalid_fd(self): fd = support.make_bad_fd() - self.assertRaises(OSError, signal.set_wakeup_fd, fd) + self.assertRaises((ValueError, OSError), + signal.set_wakeup_fd, fd) def test_set_wakeup_fd_result(self): r1, w1 = os.pipe()