[pypy-commit] pypy py3k: 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

antocuni noreply at buildbot.pypy.org
Tue Feb 21 10:50:47 CET 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
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")


More information about the pypy-commit mailing list