[Python-checkins] cpython: test_ast: pass the filename to ast.parse()
victor.stinner
python-checkins at python.org
Fri Mar 22 00:13:19 CET 2013
http://hg.python.org/cpython/rev/95fb7b66107e
changeset: 82873:95fb7b66107e
parent: 82871:f6a6b4eed5b0
user: Victor Stinner <victor.stinner at gmail.com>
date: Fri Mar 22 00:06:20 2013 +0100
summary:
test_ast: pass the filename to ast.parse()
files:
Lib/test/test_ast.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_ast.py b/Lib/test/test_ast.py
--- 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")
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list