]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-138573: Filter out failing math tests on Solaris (#146402)
authorSergey B Kirpichev <skirpichev@gmail.com>
Wed, 25 Mar 2026 23:11:20 +0000 (02:11 +0300)
committerGitHub <noreply@github.com>
Wed, 25 Mar 2026 23:11:20 +0000 (00:11 +0100)
Lib/test/test_cmath.py
Lib/test/test_math.py

index a96a5780b31b6f134d74ce5e196d177953d67821..389a3fa0e0a1eb6e761d2234cfeda7b37a3bb543 100644 (file)
@@ -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.)
index 68f41a2e62034d02940e00ba60dcaf85f46c0e55..8f9a239bead13096de7a0196e9bc7b833d152862 100644 (file)
@@ -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)