summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_descr.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_descr.py')
-rw-r--r--Lib/test/test_descr.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py
index 7137095..ba0e0b8 100644
--- a/Lib/test/test_descr.py
+++ b/Lib/test/test_descr.py
@@ -1572,15 +1572,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 = []