Kaydet (Commit) d502a07f authored tarafından Victor Stinner's avatar Victor Stinner

test_ast: pass the filename to ast.parse()

üst 6d3d0fe0
......@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment