Skip to content

Commit

Permalink
pythongh-125522: Fix bare except in test_math.testTan (pythonGH-125544)
Browse files Browse the repository at this point in the history
(cherry picked from commit 4b421e8)

Co-authored-by: Irit Katriel <[email protected]>
  • Loading branch information
iritkatriel authored and miss-islington committed Oct 19, 2024
1 parent 2ce10b1 commit 11114c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_math.py
Original file line number Diff line number Diff line change
Expand Up @@ -1886,7 +1886,7 @@ def testTan(self):
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)))
Expand Down

0 comments on commit 11114c8

Please sign in to comment.