fix this test

This commit is contained in:
Benjamin Peterson 2009-05-08 17:59:29 +00:00
parent b87b33462c
commit db7ebcf469
1 changed files with 2 additions and 4 deletions

View File

@ -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 = []