From d502a07fac728be3e1113da8cec21fd09865f2c8 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 22 Mar 2013 00:06:20 +0100 Subject: test_ast: pass the filename to ast.parse() --- Lib/test/test_ast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_ast.py b/Lib/test/test_ast.py index 8e105b2..c45326f 100644 --- a/Lib/test/test_ast.py +++ b/Lib/test/test_ast.py @@ -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") -- cgit v0.12