Skip to content

Commit 4b421e8

Browse files
authored
gh-125522: Fix bare except in test_math.testTan (#125544)
1 parent a7443a1 commit 4b421e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_math.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1902,7 +1902,7 @@ def testTan(self):
19021902
try:
19031903
self.assertTrue(math.isnan(math.tan(INF)))
19041904
self.assertTrue(math.isnan(math.tan(NINF)))
1905-
except:
1905+
except ValueError:
19061906
self.assertRaises(ValueError, math.tan, INF)
19071907
self.assertRaises(ValueError, math.tan, NINF)
19081908
self.assertTrue(math.isnan(math.tan(NAN)))

0 commit comments

Comments
 (0)