https://github.com/python/cpython/commit/62792c8f77222b86f8d2d985fc3a2b9fffc679e8
commit: 62792c8f77222b86f8d2d985fc3a2b9fffc679e8
branch: main
author: Manoj K M <[email protected]>
committer: picnixz <[email protected]>
date: 2026-04-27T09:22:20+02:00
summary:

gh-148868: Increase test coverage for `cmath.isinf` (#148869)

files:
M Lib/test/test_cmath.py

diff --git a/Lib/test/test_cmath.py b/Lib/test/test_cmath.py
index 389a3fa0e0a1eb..a986fd6b892bd2 100644
--- a/Lib/test/test_cmath.py
+++ b/Lib/test/test_cmath.py
@@ -516,6 +516,7 @@ def test_isinf(self):
         self.assertFalse(cmath.isinf(1j))
         self.assertFalse(cmath.isinf(NAN))
         self.assertTrue(cmath.isinf(INF))
+        self.assertTrue(cmath.isinf(-INF))
         self.assertTrue(cmath.isinf(complex(INF, 0)))
         self.assertTrue(cmath.isinf(complex(0, INF)))
         self.assertTrue(cmath.isinf(complex(INF, INF)))

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to