[Zope-Checkins] CVS: Zope/lib/python/DateTime/tests - testDateTime.py:1.11
Andreas Jung
andreas@digicool.com
Tue, 5 Mar 2002 09:48:40 -0500
Update of /cvs-repository/Zope/lib/python/DateTime/tests
In directory cvs.zope.org:/tmp/cvs-serv2415/lib/python/DateTime/tests
Modified Files:
testDateTime.py
Log Message:
unittests for Julian calendar did not run with testrunner.py
=== Zope/lib/python/DateTime/tests/testDateTime.py 1.10 => 1.11 ===
import math
+import os
+__basedir__ = os.getcwd()
class DateTimeTests (unittest.TestCase):
@@ -227,7 +229,8 @@
print "Warning: testJulianWeek disabled: module gzip not found"
return 0
- lines = gzip.GzipFile('julian_testdata.txt.gz').readlines()
+ lines = gzip.GzipFile(os.path.join(__basedir__,
+ 'julian_testdata.txt.gz')).readlines()
for line in lines:
d = DateTime(line[:10])