commit | 5a8a03784e56e5931b4cdb3946494f8d15c72bd2 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Sun Jan 16 00:25:31 2005 +0000 |
committer | Guido van Rossum <guido@python.org> | Sun Jan 16 00:25:31 2005 +0000 |
tree | 9dcce6980365a3642c0a1c80d731586407af9346 | |
parent | fee7b93c60310413db31973c13e5abb4c7620ef4 [diff] [blame] |
Use descriptors.
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 @@ -12 """) + @staticmethod def statm(): """ A static method. @@ -91,8 +92,7 @@ """ return 666 - statm = staticmethod(statm) - + @classmethod def clsm(cls, val): """ A class method. @@ -104,8 +104,6 @@ """ return val - clsm = classmethod(clsm) - def test_main(): from test import test_doctest2 EXPECTED = 19