]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-148868: Increase test coverage for `cmath.isinf` (#148869)
authorManoj K M <manojkmdev24@gmail.com>
Mon, 27 Apr 2026 07:22:20 +0000 (12:52 +0530)
committerGitHub <noreply@github.com>
Mon, 27 Apr 2026 07:22:20 +0000 (09:22 +0200)
Lib/test/test_cmath.py

index 389a3fa0e0a1eb6e761d2234cfeda7b37a3bb543..a986fd6b892bd27f296ae8fbacb7519ee2fb45c5 100644 (file)
@@ -516,6 +516,7 @@ class CMathTests(ComplexesAreIdenticalMixin, unittest.TestCase):
         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)))