]> granicus.if.org Git - python/commitdiff
test for 2 arg exec case
authorBenjamin Peterson <benjamin@python.org>
Sun, 10 Aug 2014 02:39:50 +0000 (19:39 -0700)
committerBenjamin Peterson <benjamin@python.org>
Sun, 10 Aug 2014 02:39:50 +0000 (19:39 -0700)
Lib/test/test_compile.py

index 5f91d0d6387cde7e1489501248492ab4d97eabe3..ca396a974e1c669cf44c26b6d797d6b55c6ff2b9 100644 (file)
@@ -102,6 +102,11 @@ def g():
     def f():
         if True:
             exec("", {}, {})
+        """, """
+def g():
+    def f():
+        if True:
+            exec("", {})
         """]
         for c in code:
             compile(c, "<code>", "exec")