Skip to content

Commit 105d36c

Browse files
committed
+1
1 parent 8f4bb35 commit 105d36c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Lib/test/test_exceptions.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -279,14 +279,14 @@ def testSyntaxErrorOffset(self):
279279
check('try:\n pass\nexcept*:\n pass\nexcept* ValueError:\n pass', 3, 8)
280280

281281
# Errors thrown by the tokenizer
282-
check('(0x+1)', 1, 3)
283-
check('x = 0xI', 1, 6)
282+
check('(0x+1)', 1, 4)
283+
check('x = 0xI', 1, 7)
284284
check('0010 + 2', 1, 1)
285285
check('x = 32e-+4', 1, 8)
286286
check('x = 0o9', 1, 7)
287-
check('\u03b1 = 0xI', 1, 6)
288-
check(b'\xce\xb1 = 0xI', 1, 6)
289-
check(b'# -*- coding: iso8859-7 -*-\n\xe1 = 0xI', 2, 6,
287+
check('\u03b1 = 0xI', 1, 7)
288+
check(b'\xce\xb1 = 0xI', 1, 7)
289+
check(b'# -*- coding: iso8859-7 -*-\n\xe1 = 0xI', 2, 7,
290290
encoding='iso8859-7')
291291
check(b"""if 1:
292292
def foo():

0 commit comments

Comments
 (0)