[Python-checkins] python/nondist/sandbox/datetime test_datetime.py,1.97,1.98

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Fri, 10 Jan 2003 19:44:16 -0800


Update of /cvsroot/python/python/nondist/sandbox/datetime
In directory sc8-pr-cvs1:/tmp/cvs-serv22869

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.


Index: test_datetime.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/datetime/test_datetime.py,v
retrieving revision 1.97
retrieving revision 1.98
diff -C2 -d -r1.97 -r1.98
*** test_datetime.py	10 Jan 2003 03:52:25 -0000	1.97
--- test_datetime.py	11 Jan 2003 03:44:14 -0000	1.98
***************
*** 2075,2079 ****
          orig = self.theclass(*args, **{'tzinfo': tinfo})
          state = orig.__getstate__()
!         derived = self.theclass(1, 1, 1)
          derived.__setstate__(state)
          self.assertEqual(orig, derived)
--- 2075,2079 ----
          orig = self.theclass(*args, **{'tzinfo': tinfo})
          state = orig.__getstate__()
!         derived = self.theclass(1, 1, 1, tzinfo=FixedOffset(0, "", 0))
          derived.__setstate__(state)
          self.assertEqual(orig, derived)