[Python-checkins] python/dist/src/Lib/test test_datetime.py,1.23,1.24
tim_one@users.sourceforge.net
tim_one@users.sourceforge.net
Thu, 09 Jan 2003 19:49:05 -0800
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv26942/python/Lib/test
Modified Files:
test_datetime.py
Log Message:
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.
Index: test_datetime.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_datetime.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** test_datetime.py 8 Jan 2003 20:39:52 -0000 1.23
--- test_datetime.py 10 Jan 2003 03:49:02 -0000 1.24
***************
*** 1858,1862 ****
orig = self.theclass(5, 6, 7, tzinfo=tinfo)
state = orig.__getstate__()
! derived = self.theclass()
derived.__setstate__(state)
self.assertEqual(orig, derived)
--- 1858,1862 ----
orig = self.theclass(5, 6, 7, tzinfo=tinfo)
state = orig.__getstate__()
! derived = self.theclass(tzinfo=FixedOffset(0, "UTC", 0))
derived.__setstate__(state)
self.assertEqual(orig, derived)