diff options
Diffstat (limited to 'Lib/test/test_descr.py')
-rw-r--r-- | Lib/test/test_descr.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index 993cebd..9fa8659 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: |