]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
I forgot to fix one occurence of new in test_descr
authorChristian Heimes <christian@cheimes.de>
Tue, 27 Nov 2007 23:53:14 +0000 (23:53 +0000)
committerChristian Heimes <christian@cheimes.de>
Tue, 27 Nov 2007 23:53:14 +0000 (23:53 +0000)
Lib/test/test_descr.py

index 993cebdc1489ad6829dd175f558ece9a3290d7fb..9fa8659c192bb9dff39bf07b8817cebb787878f8 100644 (file)
@@ -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: