From bee25d0d7680012eab69628626d79f08bd62cb06 Mon Sep 17 00:00:00 2001 From: richard Date: Mon, 13 Aug 2001 23:01:53 +0000 Subject: [PATCH] fixed a 2.1-ism git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@232 57a73879-2fb5-44c3-a270-3262357dd7e2 --- test/test_dates.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/test_dates.py b/test/test_dates.py index fa461bb..42cf18b 100644 --- a/test/test_dates.py +++ b/test/test_dates.py @@ -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. -- 2.30.2