Skip to content

Commit afe200a

Browse files
committed
address review: add SyntaxWarning's test for octal
1 parent f9dec43 commit afe200a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_grammar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def check(test, error=False):
195195
("0bz", 3, "binary"),
196196
# SyntaxWarning's currently:
197197
("1or 0", 2, " decimal"),
198-
("0or 0", 3, "octal"),
198+
("0o1or 0", 4, "octal"),
199199
])
200200
def test_end_of_numerical_literals_offset(self, source, offset, msg):
201201
# gh-149277: verify the error caret points at the first invalid

0 commit comments

Comments
 (0)