summaryrefslogtreecommitdiff
path: root/tests/test_debfile.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_debfile.py')
-rw-r--r--tests/test_debfile.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_debfile.py b/tests/test_debfile.py
index 571c2ec9..759639c4 100644
--- a/tests/test_debfile.py
+++ b/tests/test_debfile.py
@@ -85,6 +85,11 @@ class TestDebfilee(unittest.TestCase):
"Samuel Lidén Borell <samuel@slbdata.se>")
def testContent(self):
+ # no python-debian for python3 yet, so fail gracefully
+ try:
+ import debian
+ except ImportError:
+ return
# normal
deb = apt.debfile.DebPackage(cache=self.cache)
deb.open(os.path.join("data", "test_debs", "gdebi-test11.deb"))