From c82a17940034faa6e8178f50d001c3a54fc47ac0 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 24 Jul 2014 22:55:12 +0200 Subject: Issue #22018: Fix test_set_wakeup_fd_result(), use assertEqual() not assertIs(). --- Lib/test/test_signal.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py index 56ab631..ca571b9 100644 --- a/Lib/test/test_signal.py +++ b/Lib/test/test_signal.py @@ -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") -- cgit v0.12