Skip to content

Commit 14f49de

Browse files
Add test cases with combining characters
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent a1065a9 commit 14f49de

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/test/test_exceptions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,10 @@ def testSyntaxErrorRange(self):
239239
for source, offset, end_offset in [
240240
('abcd = 00010', 8, 11),
241241
('\u03b1\u03b2\u03b3\u03b4 = 00010', 8, 11),
242+
('a\u0301b\u0308c\u20d7d\u1ab0 = 00010', 12, 15),
242243
("abcd = ub'a'", 8, 10),
243244
("\u03b1\u03b2\u03b3\u03b4 = ub'a'", 8, 10),
245+
("a\u0301b\u0308c\u20d7d\u1ab0 = ub'a'", 12, 14),
244246
]:
245247
with self.subTest(source=source):
246248
with self.assertRaises(SyntaxError) as cm:

0 commit comments

Comments
 (0)