]> granicus.if.org Git - python/commitdiff
Issue #22018: Hum, set_wakeup_fd() still raises ValueError on Windows
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 21 Jul 2014 15:17:28 +0000 (17:17 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 21 Jul 2014 15:17:28 +0000 (17:17 +0200)
Lib/test/test_signal.py

index e40dfb5658cfeceab4c73ab669055f2321620d8f..56ab6316b61d2e82418b986771b94663b593a857 100644 (file)
@@ -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()