Skip to content

Commit 466ff99

Browse files
skirpichevmiss-islington
authored andcommitted
gh-138573: Filter out failing math tests on Solaris (GH-146402)
(cherry picked from commit 8e1469c) Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
1 parent c8e0ead commit 466ff99

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Lib/test/test_cmath.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,8 @@ def polar_with_errno_set(z):
406406
_testcapi.set_errno(0)
407407
self.check_polar(polar_with_errno_set)
408408

409+
@unittest.skipIf(sys.platform.startswith("sunos"),
410+
"skipping, see gh-138573")
409411
def test_phase(self):
410412
self.assertAlmostEqual(phase(0), 0.)
411413
self.assertAlmostEqual(phase(1.), 0.)

Lib/test/test_math.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,8 @@ def testAtanh(self):
324324
self.assertRaises(ValueError, math.atanh, NINF)
325325
self.assertTrue(math.isnan(math.atanh(NAN)))
326326

327+
@unittest.skipIf(sys.platform.startswith("sunos"),
328+
"skipping, see gh-138573")
327329
def testAtan2(self):
328330
self.assertRaises(TypeError, math.atan2)
329331
self.ftest('atan2(-1, 0)', math.atan2(-1, 0), -math.pi/2)

0 commit comments

Comments
 (0)