diff options
author | Tim Peters <tim.peters@gmail.com> | 2003-01-10 03:49:02 +0000 |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2003-01-10 03:49:02 +0000 |
commit | 440f9eddbfeb5a1c1979ead10ebb76091a743e49 (patch) | |
tree | 4d1c3d425245e89557d74516dd0d1f97b55a191b /Lib/test/test_datetime.py | |
parent | cd31d84136a349bb7083cca4cfdcb66a30523006 (diff) | |
download | cpython-440f9eddbfeb5a1c1979ead10ebb76091a743e49.tar.gz |
Got rid of the timetz type entirely. This was a bit trickier than I
hoped it would be, but not too bad. A test had to change:
time.__setstate__() can no longer add a non-None tzinfo member to a time
object that didn't already have one, since storage for a tzinfo member
doesn't exist in that case.
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 614fed6d03..0cda5d0c2d 100644 --- a/Lib/test/test_datetime.py +++ b/Lib/test/test_datetime.py @@ -1857,7 +1857,7 @@ class TestTimeTZ(TestTime, TZInfoBase): tinfo = PicklableFixedOffset(-300, 'cookie') orig = self.theclass(5, 6, 7, tzinfo=tinfo) state = orig.__getstate__() - derived = self.theclass() + derived = self.theclass(tzinfo=FixedOffset(0, "UTC", 0)) derived.__setstate__(state) self.assertEqual(orig, derived) self.failUnless(isinstance(derived.tzinfo, PicklableFixedOffset)) |