Skip to content

Commit 37140a9

Browse files
Update test
1 parent 09958cc commit 37140a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/datetimetester.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3534,7 +3534,7 @@ def test_fromisoformat_fails_datetime(self):
35343534
'2009-04-19T03:15:4500:00', # Bad time zone separator
35353535
'2009-04-19T03:15:45.123456+24:30', # Invalid time zone offset
35363536
'2009-04-19T03:15:45.123456-24:30', # Invalid negative offset
3537-
'2009-04-10ᛇᛇᛇᛇᛇ12:15', # Too many unicode separators
3537+
'2009-04-10ᛇᛇᛇᛇᛇ12:15', # Unicode chars
35383538
'2009-04\ud80010T12:15', # Surrogate char in date
35393539
'2009-04-10T12\ud80015', # Surrogate char in time
35403540
'2009-04-19T1', # Incomplete hours
@@ -3560,7 +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-
with self.assertRaises(ValueError):
3563+
with self.assertRaises(ValueError, TypeError):
35643564
self.theclass.fromisoformat(bad_str)
35653565

35663566
def test_fromisoformat_fails_datetime_valueerror(self):

0 commit comments

Comments
 (0)