Skip to content

Commit

Permalink
Update Lib/test/test_math.py
Browse files Browse the repository at this point in the history
Co-authored-by: Sergey B Kirpichev <[email protected]>
  • Loading branch information
iritkatriel and skirpichev authored Oct 18, 2024
1 parent 1340811 commit a22534e
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions Lib/test/test_math.py
Original file line number Diff line number Diff line change
Expand Up @@ -1902,19 +1902,11 @@ def testTan(self):
self.assertTrue(math.isnan(math.tan(NAN)))

try:
tan = math.tan(INF)
self.assertTrue(math.isnan(math.tan(INF)))
self.assertTrue(math.isnan(math.tan(NINF)))
except ValueError:
pass
else:
self.assertTrue(math.isnan(tan))

try:
ntan = math.tan(NINF)
except ValueError:
pass
else:
self.assertTrue(math.isnan(ntan))

self.assertRaises(ValueError, math.tan, INF)
self.assertRaises(ValueError, math.tan, NINF)
def testTanh(self):
self.assertRaises(TypeError, math.tanh)
self.ftest('tanh(0)', math.tanh(0), 0)
Expand Down

0 comments on commit a22534e

Please sign in to comment.