Commit c82a1794 authored by Victor Stinner's avatar Victor Stinner

Issue #22018: Fix test_set_wakeup_fd_result(), use assertEqual() not

assertIs().
parent 1d8948e0
......@@ -264,9 +264,9 @@ class WakeupFDTests(unittest.TestCase):
self.addCleanup(os.close, w2)
signal.set_wakeup_fd(w1)
self.assertIs(signal.set_wakeup_fd(w2), w1)
self.assertIs(signal.set_wakeup_fd(-1), w2)
self.assertIs(signal.set_wakeup_fd(-1), -1)
self.assertEqual(signal.set_wakeup_fd(w2), w1)
self.assertEqual(signal.set_wakeup_fd(-1), w2)
self.assertEqual(signal.set_wakeup_fd(-1), -1)
@unittest.skipIf(sys.platform == "win32", "Not valid on Windows")
......
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