Author: Antonio Cuni <[email protected]>
Branch: py3k
Changeset: r51837:4a4a774f432f
Date: 2012-01-27 00:10 +0100
http://bitbucket.org/pypy/pypy/changeset/4a4a774f432f/
Log: exec is a function in python3, not a statement
diff --git a/pypy/interpreter/test/test_syntax.py
b/pypy/interpreter/test/test_syntax.py
--- a/pypy/interpreter/test/test_syntax.py
+++ b/pypy/interpreter/test/test_syntax.py
@@ -17,48 +17,48 @@
def f():
def g():
global x
- exec "hi"
+ exec("hi")
x
def f(x):
def g():
global x
- exec "hi"
+ exec("hi")
x
def f():
def g():
- exec "hi"
+ exec("hi")
def f():
- exec "hi"
+ exec("hi")
def f():
- exec "hi"
+ exec("hi")
def g():
global x
x
def f():
- exec "hi"
+ exec("hi")
def g(x):
x
def f():
- exec "hi"
+ exec("hi")
lambda x: x
def f():
- exec "hi"
+ exec("hi")
x
def f():
- exec "hi"
+ exec("hi")
(i for i in x)
def f():
class g:
- exec "hi"
+ exec("hi")
x
""")
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit