summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ast.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-03-21 23:06:20 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-03-21 23:06:20 (GMT)
commitd502a07fac728be3e1113da8cec21fd09865f2c8 (patch)
tree9d68ec433cccae6fbfc1822cb99690df490b3b0b /Lib/test/test_ast.py
parent6d3d0fe0b2ebb3628167fb90a6ffd51c3b73046b (diff)
downloadcpython-d502a07fac728be3e1113da8cec21fd09865f2c8.zip
cpython-d502a07fac728be3e1113da8cec21fd09865f2c8.tar.gz
cpython-d502a07fac728be3e1113da8cec21fd09865f2c8.tar.bz2
test_ast: pass the filename to ast.parse()
Diffstat (limited to 'Lib/test/test_ast.py')
-rw-r--r--Lib/test/test_ast.py2
1 files changed, 1 insertions, 1 deletions
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")