diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-07-30 08:03:03 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-07-30 08:03:03 (GMT) |
commit | da565a790c0851650d6466cde43381e208746197 (patch) | |
tree | 8e4c22c013812746acf404fe1dae424cc682f12f /Lib/test/test_signal.py | |
parent | 8f46da1b29bc4dbdc5fc69a866b0b26308860a98 (diff) | |
download | cpython-da565a790c0851650d6466cde43381e208746197.zip cpython-da565a790c0851650d6466cde43381e208746197.tar.gz cpython-da565a790c0851650d6466cde43381e208746197.tar.bz2 |
Issue #22018: Fix test_signal: use assertEqual() not assertIs()
Diffstat (limited to 'Lib/test/test_signal.py')
-rw-r--r-- | Lib/test/test_signal.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py index 04cd342..57b0d86 100644 --- a/Lib/test/test_signal.py +++ b/Lib/test/test_signal.py @@ -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") |