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

Issue #22018: Fix test_signal: use assertEqual() not assertIs()

üst 8f46da1b
......@@ -286,9 +286,9 @@ class WakeupFDTests(unittest.TestCase):
fd2 = sock2.fileno()
signal.set_wakeup_fd(fd1)
self.assertIs(signal.set_wakeup_fd(fd2), fd1)
self.assertIs(signal.set_wakeup_fd(-1), fd2)
self.assertIs(signal.set_wakeup_fd(-1), -1)
self.assertEqual(signal.set_wakeup_fd(fd2), fd1)
self.assertEqual(signal.set_wakeup_fd(-1), fd2)
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