summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_descr.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2005-01-16 00:25:31 (GMT)
committerGuido van Rossum <guido@python.org>2005-01-16 00:25:31 (GMT)
commit5a8a03784e56e5931b4cdb3946494f8d15c72bd2 (patch)
tree9dcce6980365a3642c0a1c80d731586407af9346 /Lib/test/test_descr.py
parentfee7b93c60310413db31973c13e5abb4c7620ef4 (diff)
downloadcpython-5a8a03784e56e5931b4cdb3946494f8d15c72bd2.zip
cpython-5a8a03784e56e5931b4cdb3946494f8d15c72bd2.tar.gz
cpython-5a8a03784e56e5931b4cdb3946494f8d15c72bd2.tar.bz2
Use descriptors.
Diffstat (limited to 'Lib/test/test_descr.py')
-rw-r--r--Lib/test/test_descr.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py
index f1abd3a..c1bd00d 100644
--- a/Lib/test/test_descr.py
+++ b/Lib/test/test_descr.py
@@ -691,13 +691,13 @@ def metaclass():
class _instance(object):
pass
class M2(object):
+ @staticmethod
def __new__(cls, name, bases, dict):
self = object.__new__(cls)
self.name = name
self.bases = bases
self.dict = dict
return self
- __new__ = staticmethod(__new__)
def __call__(self):
it = _instance()
# Early binding of methods
@@ -2071,9 +2071,9 @@ def supers():
aProp = property(lambda self: "foo")
class Sub(Base):
+ @classmethod
def test(klass):
return super(Sub,klass).aProp
- test = classmethod(test)
veris(Sub.test(), Base.aProp)