diff options
author | Gabriel F. T. Gomes <gabriel@inconstante.net.br> | 2020-08-03 18:43:13 -0300 |
---|---|---|
committer | Gabriel F. T. Gomes <gabriel@inconstante.net.br> | 2020-08-03 18:43:13 -0300 |
commit | 95623d39d6029ba78ec96ad5ea08e9ac12629b91 (patch) | |
tree | ea0fe36eb5e6f40e0a1f765d44c4b0c0b2bfb089 /test/t/test_cpio.py | |
parent | 019f3cc463db63abc6460f97deb488deec43840b (diff) | |
download | bash-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.py | 12 |
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 |