[Python-checkins] python/nondist/sandbox/datetime test_both.py,1.45,1.46

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
2002年12月06日 12:32:32 -0800


Update of /cvsroot/python/python/nondist/sandbox/datetime
In directory sc8-pr-cvs1:/tmp/cvs-serv31223
Modified Files:
	test_both.py 
Log Message:
Added a ctime() test that doesn't care about the platform differences
in time.ctime().
Index: test_both.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/datetime/test_both.py,v
retrieving revision 1.45
retrieving revision 1.46
diff -C2 -d -r1.45 -r1.46
*** test_both.py	6 Dec 2002 20:26:24 -0000	1.45
--- test_both.py	6 Dec 2002 20:32:23 -0000	1.46
***************
*** 845,848 ****
--- 845,852 ----
 # self.assertEqual(t.ctime(), time.ctime(time.mktime(t.timetuple())))
 
+ # So test a case where that difference doesn't matter.
+ t = self.theclass(2002, 3, 22, 18, 3, 5, 123)
+ self.assertEqual(t.ctime(), time.ctime(time.mktime(t.timetuple())))
+ 
 def test_tz_independent_comparing(self):
 dt1 = self.theclass(2002, 3, 1, 9, 0, 0)

AltStyle によって変換されたページ (->オリジナル) /