Author: Antonio Cuni <[email protected]>
Branch: py3k
Changeset: r52710:2963eaf808c2
Date: 2012-02-21 10:02 +0100
http://bitbucket.org/pypy/pypy/changeset/2963eaf808c2/

Log:    bah, this test did nothing because of a bad indentation. Fix it, and
        adapt to py3k because list.append is no longer an unboud method

diff --git a/pypy/interpreter/test/test_function.py 
b/pypy/interpreter/test/test_function.py
--- a/pypy/interpreter/test/test_function.py
+++ b/pypy/interpreter/test/test_function.py
@@ -96,8 +96,8 @@
     def test_write_code_builtin_forbidden(self):
         def f(*args):
             return 42
-            raises(TypeError, "dir.func_code = f.func_code")
-            raises(TypeError, "list.append.im_func.func_code = f.func_code")
+        raises(TypeError, "dir.func_code = f.func_code")
+        raises(TypeError, "list().append.im_func.func_code = f.func_code")
 
     def test_set_module_to_name_eagerly(self):
         skip("fails on PyPy but works on CPython.  Unsure we want to care")
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to