mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
I forgot to fix one occurence of new in test_descr
This commit is contained in:
parent
28104c58d2
commit
636afc52c0
1 changed files with 1 additions and 1 deletions
|
@ -2010,7 +2010,7 @@ def recursions():
|
||||||
# Bug #1202533.
|
# Bug #1202533.
|
||||||
class A(object):
|
class A(object):
|
||||||
pass
|
pass
|
||||||
A.__mul__ = new.instancemethod(lambda self, x: self * x, None, A)
|
A.__mul__ = types.MethodType(lambda self, x: self * x, None, A)
|
||||||
try:
|
try:
|
||||||
A()*2
|
A()*2
|
||||||
except RuntimeError:
|
except RuntimeError:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue