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