Skip to content

Commit ccf7bf6

Browse files
committed
test(dmesg,vipw): expect no options on macOS
1 parent 6a0052b commit ccf7bf6

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

test/t/test_dmesg.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
import sys
2+
13
import pytest
24

35

46
class TestDmesg:
57
@pytest.mark.complete("dmesg -", require_cmd=True)
68
def test_1(self, completion):
7-
assert completion
9+
if sys.platform == "darwin":
10+
assert not completion # takes no options
11+
else:
12+
assert completion

test/t/test_vipw.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
import sys
2+
13
import pytest
24

35

46
class TestVipw:
57
@pytest.mark.complete("vipw -", require_cmd=True)
68
def test_1(self, completion):
7-
assert completion
9+
if sys.platform == "darwin":
10+
assert not completion # takes no options
11+
else:
12+
assert completion

0 commit comments

Comments
 (0)