mirror of https://github.com/python/cpython
gh-125522: Fix bare except in test_math.testTan (#125544)
This commit is contained in:
parent
a7443a1735
commit
4b421e8aca
|
@ -1902,7 +1902,7 @@ class MathTests(unittest.TestCase):
|
|||
try:
|
||||
self.assertTrue(math.isnan(math.tan(INF)))
|
||||
self.assertTrue(math.isnan(math.tan(NINF)))
|
||||
except:
|
||||
except ValueError:
|
||||
self.assertRaises(ValueError, math.tan, INF)
|
||||
self.assertRaises(ValueError, math.tan, NINF)
|
||||
self.assertTrue(math.isnan(math.tan(NAN)))
|
||||
|
|
Loading…
Reference in New Issue