File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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\ud800 10T12:15' , # Surrogate char in date
35393539 '2009-04-10T12\ud800 15' , # 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 ):
You can’t perform that action at this time.
0 commit comments