]> granicus.if.org Git - python/commitdiff
fix this test
authorBenjamin Peterson <benjamin@python.org>
Fri, 8 May 2009 17:59:29 +0000 (17:59 +0000)
committerBenjamin Peterson <benjamin@python.org>
Fri, 8 May 2009 17:59:29 +0000 (17:59 +0000)
Lib/test/test_descr.py

index 46fb581e4ab0e8e666eb6e372b41c38c8f931723..2b00ce9ea6e9704093c8c2658d7404ea82b46fdd 100644 (file)
@@ -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 = []