Skip to content

Commit

Permalink
pythongh-125522: Fix bare except in test_math.testTan (python#125544)
Browse files Browse the repository at this point in the history
  • Loading branch information
iritkatriel authored Oct 19, 2024
1 parent a7443a1 commit 4b421e8
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 @@ -1902,7 +1902,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 4b421e8

Please sign in to comment.