From a7d03d98c93c960039d2fae8ca3b375092cdcd49 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 21 Jul 2014 17:17:28 +0200 Subject: [PATCH] Issue #22018: Hum, set_wakeup_fd() still raises ValueError on Windows --- Lib/test/test_signal.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py index e40dfb5658cf..56ab6316b61d 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()