mirror of
https://github.com/python/cpython.git
synced 2025-10-07 15:42:02 +00:00
gh-102737: Un-ignore ceval.c in the CI globals check (gh-102745)
The tool now allows user-added #LINE preprocessor directives. https://github.com/python/cpython/issues/102737
This commit is contained in:
parent
adaed17341
commit
84e20c689a
2 changed files with 7 additions and 7 deletions
|
@ -153,9 +153,13 @@ def _iter_top_include_lines(lines, topfile, cwd,
|
|||
# XXX How can a file return to line 1?
|
||||
#assert lno > 1, (line, lno)
|
||||
else:
|
||||
# It's the next line from the file.
|
||||
assert included == files[-1], (line, files)
|
||||
assert lno > 1, (line, lno)
|
||||
if included == files[-1]:
|
||||
# It's the next line from the file.
|
||||
assert lno > 1, (line, lno)
|
||||
else:
|
||||
# We ran into a user-added #LINE directive,
|
||||
# which we promptly ignore.
|
||||
pass
|
||||
elif not files:
|
||||
raise NotImplementedError((line,))
|
||||
elif filter_reqfile(files[-1]):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue