From 636afc52c068ed88c08d1d0a09e459e8f3d200bc Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Tue, 27 Nov 2007 23:53:14 +0000 Subject: [PATCH] I forgot to fix one occurence of new in test_descr --- Lib/test/test_descr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index 993cebdc148..9fa8659c192 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: