diff options
Diffstat (limited to 'test/t/test_dpkg_query.py')
-rw-r--r-- | test/t/test_dpkg_query.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/t/test_dpkg_query.py b/test/t/test_dpkg_query.py index 37c5621..743d668 100644 --- a/test/t/test_dpkg_query.py +++ b/test/t/test_dpkg_query.py @@ -3,7 +3,7 @@ import os.path import pytest -@pytest.mark.bashcomp(cmd="dpkg-query",) +@pytest.mark.bashcomp(cmd="dpkg-query") class TestDpkgQuery: @pytest.mark.complete("dpkg-query --", require_cmd=True) def test_options(self, completion): @@ -13,6 +13,10 @@ class TestDpkgQuery: not os.path.exists("/etc/debian_version"), reason="Likely fails on systems not based on Debian", ) - @pytest.mark.complete("dpkg-query -W dpk", require_cmd=True) + @pytest.mark.complete( + "dpkg-query -W dpk", + require_cmd=True, + xfail="! apt-cache show &>/dev/null", # empty cache? + ) def test_show(self, completion): assert "dpkg" in completion |