[Zope3-checkins] CVS: Zope3/src/datetime/tests - test_datetime.py:1.18
Tim Peters
tim.one@comcast.net
Fri, 10 Jan 2003 22:43:27 -0500
Update of /cvs-repository/Zope3/src/datetime/tests
In directory cvs.zope.org:/tmp/cvs-serv4857/src/datetime/tests
Modified Files:
test_datetime.py
Log Message:
Changed a test to reflect that the C implementation of
datetime.__setstate__ can't add a non-None tzinfo to a datetime object
that didn't already have a tzinfo member.
=== Zope3/src/datetime/tests/test_datetime.py 1.17 => 1.18 ===
--- Zope3/src/datetime/tests/test_datetime.py:1.17 Thu Jan 9 22:54:49 2003
+++ Zope3/src/datetime/tests/test_datetime.py Fri Jan 10 22:43:24 2003
@@ -2074,7 +2074,7 @@
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))