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_datetime.py | |
parent | fee7b93c60310413db31973c13e5abb4c7620ef4 (diff) | |
download | cpython-5a8a03784e56e5931b4cdb3946494f8d15c72bd2.zip cpython-5a8a03784e56e5931b4cdb3946494f8d15c72bd2.tar.gz cpython-5a8a03784e56e5931b4cdb3946494f8d15c72bd2.tar.bz2 |
Use descriptors.
Diffstat (limited to 'Lib/test/test_datetime.py')
-rw-r--r-- | Lib/test/test_datetime.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_datetime.py b/Lib/test/test_datetime.py index d1f312d..9abfb87 100644 --- a/Lib/test/test_datetime.py +++ b/Lib/test/test_datetime.py @@ -446,9 +446,9 @@ class TestTimeDelta(HarmlessMixedComparison): def test_subclass_timedelta(self): class T(timedelta): + @staticmethod def from_td(td): return T(td.days, td.seconds, td.microseconds) - from_td = staticmethod(from_td) def as_hours(self): sum = (self.days * 24 + |