From: Manoj K M Date: Mon, 27 Apr 2026 07:22:20 +0000 (+0530) Subject: gh-148868: Increase test coverage for `cmath.isinf` (#148869) X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=62792c8f77222b86f8d2d985fc3a2b9fffc679e8;p=thirdparty%2FPython%2Fcpython.git gh-148868: Increase test coverage for `cmath.isinf` (#148869) --- diff --git a/Lib/test/test_cmath.py b/Lib/test/test_cmath.py index 389a3fa0e0a1..a986fd6b892b 100644 --- a/Lib/test/test_cmath.py +++ b/Lib/test/test_cmath.py @@ -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)))