Skip to content

Commit d176aaf

Browse files
committed
test/dpkg-query: mark as xfail on non-Debian based systems
1 parent df7b81e commit d176aaf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/t/test_dpkg_query.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import os.path
2+
13
import pytest
24

35

@@ -7,6 +9,10 @@ class TestDpkgQuery:
79
def test_options(self, completion):
810
assert completion
911

12+
@pytest.mark.xfail(
13+
not os.path.exists("/etc/debian_version"),
14+
reason="Likely fails on systems not based on Debian",
15+
)
1016
@pytest.mark.complete("dpkg-query -W dpk", require_cmd=True)
1117
def test_show(self, completion):
1218
assert "dpkg" in completion

0 commit comments

Comments
 (0)