Commit 9e60fb80 authored by Andreas Jung's avatar Andreas Jung

unittests for Julian calendar did not run with testrunner.py

parent 530acf3e
......@@ -7,6 +7,8 @@ from DateTime import DateTime
import string
import math
import os
__basedir__ = os.getcwd()
class DateTimeTests (unittest.TestCase):
......@@ -227,7 +229,8 @@ class DateTimeTests (unittest.TestCase):
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])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment