From: Victor Stinner Date: Thu, 21 Mar 2013 23:06:20 +0000 (+0100) Subject: test_ast: pass the filename to ast.parse() X-Git-Tag: v3.4.0a1~1118 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d502a07fac728be3e1113da8cec21fd09865f2c8;p=python test_ast: pass the filename to ast.parse() --- diff --git a/Lib/test/test_ast.py b/Lib/test/test_ast.py index 8e105b2432..c45326f4b4 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")