[Zope3-checkins] CVS: Zope3/lib/python/datetime - test_datetime.py:1.3
Kapil Thangavelu
kvthan@wm.edu
Thu, 17 Oct 2002 19:08:50 -0400
Update of /cvs-repository/Zope3/lib/python/datetime
In directory cvs.zope.org:/tmp/cvs-serv6800
Modified Files:
test_datetime.py
Log Message:
fixed some imports so that the tests will run
=== Zope3/lib/python/datetime/test_datetime.py 1.2 => 1.3 ===
--- Zope3/lib/python/datetime/test_datetime.py:1.2 Fri Oct 4 14:05:19 2002
+++ Zope3/lib/python/datetime/test_datetime.py Thu Oct 17 19:08:50 2002
@@ -6,7 +6,8 @@
import sys
import unittest
-from datetime import date, datetime, datetimetz, timedelta, MINYEAR, MAXYEAR
+from datetime import date, datetime, datetimetz, timedelta
+from datetime._datetime import MINYEAR, MAXYEAR
class TestTimeDelta(unittest.TestCase):
@@ -96,7 +97,7 @@
self.assertEqual(dt, dt2)
def test_ordinal_conversions(self):
- from datetime import _ymd2ord, _ord2ymd
+ from datetime._datetime import _ymd2ord, _ord2ymd
# Check some fixed values.
for y, m, d, n in [(1, 1, 1, 1), # calendar origin
@@ -498,7 +499,7 @@
self.assertEqual(t.isoformat(' '), "0002-03-02 04:05:01.000123")
def test_tmxxx(self):
- from datetime import tmxxx
+ from datetime._datetime import tmxxx
for timestamp in 123456789.0, 987654321.0:
dt = self.theclass.utcfromtimestamp(timestamp)
# Mangles the fields, but in such a way that normalization should