mirror of https://github.com/python/cpython.git
fix this test
This commit is contained in:
parent
b87b33462c
commit
db7ebcf469
|
@ -1699,15 +1699,13 @@ def __init__(self, impl):
|
|||
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…
Reference in New Issue