mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
test_ast: pass the filename to ast.parse()
This commit is contained in:
parent
6d3d0fe0b2
commit
d502a07fac
1 changed files with 1 additions and 1 deletions
|
|
@ -947,7 +947,7 @@ class ASTValidatorTests(unittest.TestCase):
|
|||
fn = os.path.join(stdlib, module)
|
||||
with open(fn, "r", encoding="utf-8") as fp:
|
||||
source = fp.read()
|
||||
mod = ast.parse(source)
|
||||
mod = ast.parse(source, fn)
|
||||
compile(mod, fn, "exec")
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue