There was an error while loading. Please reload this page.
1 parent 897999d commit 57801f4Copy full SHA for 57801f4
1 file changed
Lib/test/datetimetester.py
@@ -2119,6 +2119,9 @@ def test_fromisoformat_fails(self):
2119
'٢025-03-09', # Unicode characters
2120
'2009\ud80002\ud80028', # Separators are surrogate codepoints
2121
]
2122
+ if not issubclass(self.theclass, datetime):
2123
+ # 9 characters, 10 UTF-8 bytes; exercise the C parser's 10-byte path.
2124
+ bad_strs.append('20200101\u00e9')
2125
2126
for bad_str in bad_strs:
2127
with self.assertRaises(ValueError):
0 commit comments