From: Christian Heimes Date: Tue, 27 Nov 2007 23:53:14 +0000 (+0000) Subject: I forgot to fix one occurence of new in test_descr X-Git-Tag: v2.6a1~990 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=636afc52c068ed88c08d1d0a09e459e8f3d200bc;p=thirdparty%2FPython%2Fcpython.git I forgot to fix one occurence of new in test_descr --- diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index 993cebdc1489..9fa8659c192b 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -2010,7 +2010,7 @@ def recursions(): # Bug #1202533. class A(object): pass - A.__mul__ = new.instancemethod(lambda self, x: self * x, None, A) + A.__mul__ = types.MethodType(lambda self, x: self * x, None, A) try: A()*2 except RuntimeError: