From 77ed6dec2ba3dcbbec4b4027ffd3313fa03f6905 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Wed, 30 Sep 2015 23:27:55 -0400 Subject: [PATCH] skip converter tests if attic isn't installed --- borg/testsuite/convert.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/borg/testsuite/convert.py b/borg/testsuite/convert.py index 74196063e..29b7c49f0 100644 --- a/borg/testsuite/convert.py +++ b/borg/testsuite/convert.py @@ -3,9 +3,14 @@ import shutil import tempfile -import attic.repository -import attic.key -import attic.helpers +try: + import attic.repository + import attic.key + import attic.helpers +except ImportError: + attic = None +pytestmark = pytest.mark.skipif(attic is None, + reason = 'cannot find an attic install') from ..converter import AtticRepositoryConverter, NotImplementedException from ..helpers import get_keys_dir