commit | d502a07fac728be3e1113da8cec21fd09865f2c8 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Fri Mar 22 00:06:20 2013 +0100 |
committer | Victor Stinner <victor.stinner@gmail.com> | Fri Mar 22 00:06:20 2013 +0100 |
tree | 9d68ec433cccae6fbfc1822cb99690df490b3b0b | |
parent | 6d3d0fe0b2ebb3628167fb90a6ffd51c3b73046b [diff] |
test_ast: pass the filename to ast.parse()
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 @@ 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")