Skip to content

Commit 1a6d229

Browse files
Fix test
1 parent 2cf9d18 commit 1a6d229

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/test/datetimetester.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3560,8 +3560,7 @@ def test_fromisoformat_fails_datetime(self):
35603560

35613561
for bad_str in bad_strs:
35623562
with self.subTest(bad_str=bad_str):
3563-
errors = (ValueError, TypeError)
3564-
with self.assertRaises(errors):
3563+
with self.assertRaises((ValueError, TypeError)):
35653564
self.theclass.fromisoformat(bad_str)
35663565

35673566
def test_fromisoformat_fails_datetime_valueerror(self):

0 commit comments

Comments
 (0)