Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7443a1 commit 4b421e8Copy full SHA for 4b421e8
1 file changed
Lib/test/test_math.py
@@ -1902,7 +1902,7 @@ def testTan(self):
1902
try:
1903
self.assertTrue(math.isnan(math.tan(INF)))
1904
self.assertTrue(math.isnan(math.tan(NINF)))
1905
- except:
+ except ValueError:
1906
self.assertRaises(ValueError, math.tan, INF)
1907
self.assertRaises(ValueError, math.tan, NINF)
1908
self.assertTrue(math.isnan(math.tan(NAN)))
0 commit comments