Code

fixed a 2.1-ism
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 13 Aug 2001 23:01:53 +0000 (23:01 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 13 Aug 2001 23:01:53 +0000 (23:01 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@232 57a73879-2fb5-44c3-a270-3262357dd7e2

test/test_dates.py

index fa461bb78cf7ffae62c48bf98d11501b1754c5d9..42cf18b2501720b82b40c14c2cb92afc4705af0f 100644 (file)
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: test_dates.py,v 1.6 2001-08-07 00:24:43 richard Exp $ 
+# $Id: test_dates.py,v 1.7 2001-08-13 23:01:53 richard Exp $ 
 
 import unittest, time
 
@@ -36,7 +36,7 @@ class DateTestCase(unittest.TestCase):
         date = Date("2000-04-17")
         ae(str(date), '2000-04-17.00:00:00')
         date = Date("01-25")
-        y, m, d, x, x, x, x, x, x = time.gmtime()
+        y, m, d, x, x, x, x, x, x = time.gmtime(time.time())
         ae(str(date), '%s-01-25.00:00:00'%y)
         date = Date("2000-04-17.03:45")
         ae(str(date), '2000-04-17.03:45:00')
@@ -54,7 +54,7 @@ class DateTestCase(unittest.TestCase):
         date = Date("2000-04-17", -5)
         ae(str(date), '2000-04-17.00:00:00')
         date = Date("01-25", -5)
-        y, m, d, x, x, x, x, x, x = time.gmtime()
+        y, m, d, x, x, x, x, x, x = time.gmtime(time.time())
         ae(str(date), '%s-01-25.00:00:00'%y)
         date = Date("2000-04-17.03:45", -5)
         ae(str(date), '2000-04-17.08:45:00')
@@ -83,6 +83,9 @@ def suite():
 
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.6  2001/08/07 00:24:43  richard
+# stupid typo
+#
 # Revision 1.5  2001/08/07 00:15:51  richard
 # Added the copyright/license notice to (nearly) all files at request of
 # Bizar Software.