summaryrefslogtreecommitdiff
path: root/test/t/test_cpio.py
diff options
context:
space:
mode:
authorGabriel F. T. Gomes <gabriel@inconstante.net.br>2020-08-03 18:43:13 -0300
committerGabriel F. T. Gomes <gabriel@inconstante.net.br>2020-08-03 18:43:13 -0300
commit95623d39d6029ba78ec96ad5ea08e9ac12629b91 (patch)
treeea0fe36eb5e6f40e0a1f765d44c4b0c0b2bfb089 /test/t/test_cpio.py
parent019f3cc463db63abc6460f97deb488deec43840b (diff)
downloadbash-completion-upstream.tar.gz
New upstream version 2.11upstream/2.11upstream
Diffstat (limited to 'test/t/test_cpio.py')
-rw-r--r--test/t/test_cpio.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/test/t/test_cpio.py b/test/t/test_cpio.py
index 1b9e37df..0b739663 100644
--- a/test/t/test_cpio.py
+++ b/test/t/test_cpio.py
@@ -1,7 +1,5 @@
import pytest
-from conftest import assert_bash_exec
-
class TestCpio:
@pytest.mark.complete("cpio --")
@@ -9,10 +7,6 @@ class TestCpio:
assert completion
@pytest.mark.complete("cpio -R ")
- def test_2(self, bash, completion):
- users = sorted(
- assert_bash_exec(bash, "compgen -A user", want_output=True)
- .strip()
- .splitlines()
- )
- assert list(completion) == users
+ def test_2(self, bash, completion, output_sort_uniq):
+ users = output_sort_uniq("compgen -u")
+ assert completion == users