summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_signal.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-07-24 20:55:12 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-07-24 20:55:12 (GMT)
commitc82a17940034faa6e8178f50d001c3a54fc47ac0 (patch)
tree2a7afbabbd8521b2eec3a806bff7c9fccea16133 /Lib/test/test_signal.py
parent1d8948e02385a6a2431b3ca782cc64eb39bc8a26 (diff)
downloadcpython-c82a17940034faa6e8178f50d001c3a54fc47ac0.zip
cpython-c82a17940034faa6e8178f50d001c3a54fc47ac0.tar.gz
cpython-c82a17940034faa6e8178f50d001c3a54fc47ac0.tar.bz2
Issue #22018: Fix test_set_wakeup_fd_result(), use assertEqual() not
assertIs().
Diffstat (limited to 'Lib/test/test_signal.py')
-rw-r--r--Lib/test/test_signal.py6
1 files 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")