From 4f51b31405b77c387a80c9733c8ccef5d91c8610 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Tue, 18 Mar 2014 17:28:07 +0100 Subject: [PATCH] Loosen up testsuite again --- tests/storage/dav/test_caldav.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/storage/dav/test_caldav.py b/tests/storage/dav/test_caldav.py index c9049ea..757981e 100644 --- a/tests/storage/dav/test_caldav.py +++ b/tests/storage/dav/test_caldav.py @@ -9,7 +9,9 @@ ''' +import requests.exceptions from vdirsyncer.storage.dav.caldav import CaldavStorage +import vdirsyncer.exceptions as exceptions from . import DavStorageTests @@ -61,8 +63,11 @@ class TestCaldavStorage(DavStorageTests): def test_item_types(self): kw = self.get_storage_args() s = self.storage_class(item_types=('VTODO',), **kw) - s.upload(self._create_bogus_item(1, item_template=EVENT_TEMPLATE)) - s.upload(self._create_bogus_item(5, item_template=EVENT_TEMPLATE)) + try: + s.upload(self._create_bogus_item(1, item_template=EVENT_TEMPLATE)) + s.upload(self._create_bogus_item(5, item_template=EVENT_TEMPLATE)) + except (exceptions.Error, requests.exceptions.HTTPError): + pass href, etag = \ s.upload(self._create_bogus_item(3, item_template=TASK_TEMPLATE)) ((href2, etag2),) = s.list()