Author: Antonio Cuni <[email protected]>
Branch: py3k
Changeset: r51838:cbba65e7057f
Date: 2012-01-27 00:13 +0100
http://bitbucket.org/pypy/pypy/changeset/cbba65e7057f/
Log: exec is a function in python3, not a statement (also in the INVALID
cases, although some still fail)
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
@@ -77,44 +77,44 @@
def f():
def g():
- exec "hi"
+ exec("hi")
x
# NB. the above one is invalid in CPython, but there is no real reason
def f(x):
def g():
- exec "hi"
+ exec("hi")
x
def f():
- exec "hi"
+ exec("hi")
def g():
x
def f():
- exec "hi"
+ exec("hi")
lambda x: y
def f():
- exec "hi"
+ exec("hi")
class g:
x
def f():
- exec "hi"
+ exec("hi")
x = 5
class g:
def h():
x
def f(x):
- exec "hi"
+ exec("hi")
x = 4
class g:
x
def f(x):
- exec "hi"
+ exec("hi")
x = 5
class g:
def h():
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit