[Python-checkins] cpython (2.7): test for 2 arg exec case
benjamin.peterson
python-checkins at python.org
Sun Aug 10 04:40:03 CEST 2014
http://hg.python.org/cpython/rev/7749d30d9caa
changeset: 92057:7749d30d9caa
branch: 2.7
user: Benjamin Peterson <benjamin at python.org>
date: Sat Aug 09 19:39:50 2014 -0700
summary:
test for 2 arg exec case
files:
Lib/test/test_compile.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_compile.py b/Lib/test/test_compile.py
--- a/Lib/test/test_compile.py
+++ b/Lib/test/test_compile.py
@@ -102,6 +102,11 @@
def f():
if True:
exec("", {}, {})
+ """, """
+def g():
+ def f():
+ if True:
+ exec("", {})
"""]
for c in code:
compile(c, "<code>", "exec")
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list