summaryrefslogtreecommitdiff
path: root/tests/test_debfile_multiarch.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-10-21 11:57:10 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2011-10-21 11:57:10 +0200
commitcccf74c205b05cf81bade4269ea7df99c5dcbea7 (patch)
tree1dd6916013f4db5ab04fb4666e8458393c4450f7 /tests/test_debfile_multiarch.py
parentc96acf6d26beb8c2c2e6eb9a868a4ea6b053a9d4 (diff)
downloadpython-apt-cccf74c205b05cf81bade4269ea7df99c5dcbea7.tar.gz
tests/test_debfile_multiarch.py: skip test if e.g. unvierse is not enabled
Diffstat (limited to 'tests/test_debfile_multiarch.py')
-rw-r--r--tests/test_debfile_multiarch.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_debfile_multiarch.py b/tests/test_debfile_multiarch.py
index db777692..7c02a32a 100644
--- a/tests/test_debfile_multiarch.py
+++ b/tests/test_debfile_multiarch.py
@@ -35,7 +35,11 @@ class TestDebfileMultiarch(unittest.TestCase):
cache = apt.Cache()
# WARNING: this assumes that lib3ds-1-3 is a non-multiarch lib
# use "lib3ds-1-3" as a test to see if non-multiach lib conflicts work
- cache["lib3ds-1-3"].mark_install()
+ canary = "lib3ds-1-3"
+ if not canary in cache:
+ logging.warn("skipping test because %s is missing" % canary)
+ return
+ cache[canary].mark_install()
deb = apt.debfile.DebPackage(
"./data/test_debs/multiarch-test1_i386.deb", cache=cache)
# this deb should now not be installable