mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Got rid of the internal datetimetz type.
This commit is contained in:
parent
a032d2eb7f
commit
a9bc168f95
3 changed files with 656 additions and 1025 deletions
|
@ -2076,7 +2076,7 @@ class TestDateTimeTZ(TestDateTime, TZInfoBase):
|
|||
tinfo = PicklableFixedOffset(-300, 'cookie')
|
||||
orig = self.theclass(*args, **{'tzinfo': tinfo})
|
||||
state = orig.__getstate__()
|
||||
derived = self.theclass(1, 1, 1)
|
||||
derived = self.theclass(1, 1, 1, tzinfo=FixedOffset(0, "", 0))
|
||||
derived.__setstate__(state)
|
||||
self.assertEqual(orig, derived)
|
||||
self.failUnless(isinstance(derived.tzinfo, PicklableFixedOffset))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue