From: Sergey B Kirpichev Date: Wed, 25 Mar 2026 23:11:20 +0000 (+0300) Subject: gh-138573: Filter out failing math tests on Solaris (#146402) X-Git-Tag: v3.15.0a8~175 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8e1469c952fb9db57efdcdce459fd6f78fbaeea3;p=thirdparty%2FPython%2Fcpython.git gh-138573: Filter out failing math tests on Solaris (#146402) --- diff --git a/Lib/test/test_cmath.py b/Lib/test/test_cmath.py index a96a5780b31b..389a3fa0e0a1 100644 --- a/Lib/test/test_cmath.py +++ b/Lib/test/test_cmath.py @@ -406,6 +406,8 @@ class CMathTests(ComplexesAreIdenticalMixin, unittest.TestCase): _testcapi.set_errno(0) self.check_polar(polar_with_errno_set) + @unittest.skipIf(sys.platform.startswith("sunos"), + "skipping, see gh-138573") def test_phase(self): self.assertAlmostEqual(phase(0), 0.) self.assertAlmostEqual(phase(1.), 0.) diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py index 68f41a2e6203..8f9a239bead1 100644 --- a/Lib/test/test_math.py +++ b/Lib/test/test_math.py @@ -291,6 +291,8 @@ class MathTests(unittest.TestCase): self.assertRaises(ValueError, math.atanh, NINF) self.assertTrue(math.isnan(math.atanh(NAN))) + @unittest.skipIf(sys.platform.startswith("sunos"), + "skipping, see gh-138573") def testAtan2(self): self.assertRaises(TypeError, math.atan2) self.ftest('atan2(-1, 0)', math.atan2(-1, 0), -math.pi/2)