]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-138573: Filter out failing math tests on Solaris (GH-146402) (#146438)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 26 Mar 2026 00:42:27 +0000 (01:42 +0100)
committerGitHub <noreply@github.com>
Thu, 26 Mar 2026 00:42:27 +0000 (00:42 +0000)
gh-138573: Filter out failing math tests on Solaris (GH-146402)
(cherry picked from commit 8e1469c952fb9db57efdcdce459fd6f78fbaeea3)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
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 d14336f8bac49822441c07dd87e168764e5e3217..5f64df60c92a3f1f0586e38bd96425cce98ce345 100644 (file)
@@ -324,6 +324,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)