Skip to content

Commit 210688d

Browse files
committed
gh-138573: filter out failing math tests on Solaris
1 parent 68c7fad commit 210688d

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
@@ -291,6 +291,8 @@ def testAtanh(self):
291291
self.assertRaises(ValueError, math.atanh, NINF)
292292
self.assertTrue(math.isnan(math.atanh(NAN)))
293293

294+
@unittest.skipIf(sys.platform.startswith("sunos"),
295+
"skipping, see gh-138573")
294296
def testAtan2(self):
295297
self.assertRaises(TypeError, math.atan2)
296298
self.ftest('atan2(-1, 0)', math.atan2(-1, 0), -math.pi/2)

0 commit comments

Comments
 (0)