Skip to content

Commit 2cf9d18

Browse files
Clean up test
1 parent 37140a9 commit 2cf9d18

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/datetimetester.py

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

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

35663567
def test_fromisoformat_fails_datetime_valueerror(self):

0 commit comments

Comments
 (0)