mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
fix this test
This commit is contained in:
parent
b87b33462c
commit
db7ebcf469
1 changed files with 2 additions and 4 deletions
|
|
@ -1699,15 +1699,13 @@ order (MRO) for bases """
|
|||
self.impl = impl
|
||||
def __get__(self, obj, owner):
|
||||
record.append(1)
|
||||
return self
|
||||
def __call__(self, *args):
|
||||
return self.impl(*args)
|
||||
return self.impl.__get__(obj, owner)
|
||||
|
||||
|
||||
for name, runner, meth_impl in specials:
|
||||
class X(Checker):
|
||||
pass
|
||||
setattr(X, name, staticmethod(meth_impl))
|
||||
setattr(X, name, meth_impl)
|
||||
runner(X())
|
||||
|
||||
record = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue