diff --git a/Tests/Integration/README b/Tests/Integration/README index ca98c90c0..fdbf331c7 100644 --- a/Tests/Integration/README +++ b/Tests/Integration/README @@ -1,7 +1,7 @@ setup ----- -(you need "python-simplejson", "python-xml", "python-vobject" and "python-m2crypto" +(you need "python-simplejson", "python-xml", "python-vobject", "python-dateutil" and "python-m2crypto" in order to run the scripts on Debian) 1) copy config.py.in to config.py (make sure to never EVER add it to monotone) diff --git a/Tests/Integration/test-caldav-scheduling.py b/Tests/Integration/test-caldav-scheduling.py index a9fb92249..1fbd92b8e 100755 --- a/Tests/Integration/test-caldav-scheduling.py +++ b/Tests/Integration/test-caldav-scheduling.py @@ -8,10 +8,10 @@ from config import hostname, port, username, password, \ resource_no_overbook, resource_can_overbook import datetime +import dateutil.tz import sogotests import sys import time -import pytz import unittest import utilities import vobject @@ -143,7 +143,7 @@ class CalDAVITIPDelegationTest(unittest.TestCase): vevent.add('summary').value = summary vevent.add('transp').value = transparency[transp] - now = datetime.datetime.now(pytz.timezone("America/Montreal")) + now = datetime.datetime.now(dateutil.tz.gettz("America/Montreal")) startdate = vevent.add('dtstart') startdate.value = now enddate = vevent.add('dtend')