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 37140a9 commit 2cf9d18Copy full SHA for 2cf9d18
Lib/test/datetimetester.py
@@ -3560,7 +3560,8 @@ def test_fromisoformat_fails_datetime(self):
3560
3561
for bad_str in bad_strs:
3562
with self.subTest(bad_str=bad_str):
3563
- with self.assertRaises(ValueError, TypeError):
+ errors = (ValueError, TypeError)
3564
+ with self.assertRaises(errors):
3565
self.theclass.fromisoformat(bad_str)
3566
3567
def test_fromisoformat_fails_datetime_valueerror(self):
0 commit comments