diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-05-08 17:59:29 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-05-08 17:59:29 (GMT) |
commit | db7ebcf469f21b2a99d49e91f5c0f291507c35a6 (patch) | |
tree | 8a609d01f057ddb5d5e9e81932f0e113b4f4da76 /Lib/test | |
parent | b87b33462cba96331db2d063b968063855946d9a (diff) | |
download | cpython-db7ebcf469f21b2a99d49e91f5c0f291507c35a6.zip cpython-db7ebcf469f21b2a99d49e91f5c0f291507c35a6.tar.gz cpython-db7ebcf469f21b2a99d49e91f5c0f291507c35a6.tar.bz2 |
fix this test
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_descr.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index 46fb581..2b00ce9 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -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 = [] |