[Python-checkins] r72474 - python/trunk/Lib/test/test_descr.py

benjamin.peterson python-checkins at python.org
Fri May 8 19:59:29 CEST 2009


Author: benjamin.peterson
Date: Fri May  8 19:59:29 2009
New Revision: 72474

Log:
fix this test

Modified:
   python/trunk/Lib/test/test_descr.py

Modified: python/trunk/Lib/test/test_descr.py
==============================================================================
--- python/trunk/Lib/test/test_descr.py	(original)
+++ python/trunk/Lib/test/test_descr.py	Fri May  8 19:59:29 2009
@@ -1699,15 +1699,13 @@
                 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 = []


More information about the Python-checkins mailing list