diff options
author | Guido van Rossum <guido@python.org> | 2005-01-16 00:25:31 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2005-01-16 00:25:31 (GMT) |
commit | 5a8a03784e56e5931b4cdb3946494f8d15c72bd2 (patch) | |
tree | 9dcce6980365a3642c0a1c80d731586407af9346 /Lib/test/test_doctest2.py | |
parent | fee7b93c60310413db31973c13e5abb4c7620ef4 (diff) | |
download | cpython-5a8a03784e56e5931b4cdb3946494f8d15c72bd2.zip cpython-5a8a03784e56e5931b4cdb3946494f8d15c72bd2.tar.gz cpython-5a8a03784e56e5931b4cdb3946494f8d15c72bd2.tar.bz2 |
Use descriptors.
Diffstat (limited to 'Lib/test/test_doctest2.py')
-rw-r--r-- | Lib/test/test_doctest2.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/test/test_doctest2.py b/Lib/test/test_doctest2.py index 5b7f36f..865a32e 100644 --- a/Lib/test/test_doctest2.py +++ b/Lib/test/test_doctest2.py @@ -80,6 +80,7 @@ class C(object): -12 """) + @staticmethod def statm(): """ A static method. @@ -91,8 +92,7 @@ class C(object): """ return 666 - statm = staticmethod(statm) - + @classmethod def clsm(cls, val): """ A class method. @@ -104,8 +104,6 @@ class C(object): """ return val - clsm = classmethod(clsm) - def test_main(): from test import test_doctest2 EXPECTED = 19 |