Kaydet (Commit) a7d03d98 authored tarafından Victor Stinner's avatar Victor Stinner

Issue #22018: Hum, set_wakeup_fd() still raises ValueError on Windows

üst 0bffc94d
...@@ -252,7 +252,8 @@ class WakeupFDTests(unittest.TestCase): ...@@ -252,7 +252,8 @@ class WakeupFDTests(unittest.TestCase):
def test_invalid_fd(self): def test_invalid_fd(self):
fd = support.make_bad_fd() 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): def test_set_wakeup_fd_result(self):
r1, w1 = os.pipe() r1, w1 = os.pipe()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment