mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
[3.13] gh-125522: Fix bare except in test_math.testTan (GH-125544) (#125726)
gh-125522: Fix bare except in test_math.testTan (GH-125544)
(cherry picked from commit 4b421e8aca
)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
This commit is contained in:
parent
fbbc79ea25
commit
96db216181
1 changed files with 1 additions and 1 deletions
|
@ -1886,7 +1886,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…
Add table
Add a link
Reference in a new issue