Skip to content

Commit

Permalink
test(_filedir): fix CI error
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Aug 11, 2024
1 parent 0973b43 commit 7b4c531
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/t/unit/test_unit_compgen_filedir.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import pytest

from conftest import assert_bash_exec, assert_complete
from conftest import assert_bash_exec, assert_complete, bash_env_saved


@pytest.mark.bashcomp(cmd=None, ignore_env=r"^\+COMPREPLY=")
Expand Down Expand Up @@ -59,7 +59,9 @@ def utf8_ctype(self, bash):
return lc_ctype

def test_1(self, bash):
assert_bash_exec(bash, "_comp_compgen_filedir >/dev/null")
with bash_env_saved(bash) as bash_env:
bash_env.write_variable("cur", "")
assert_bash_exec(bash, 'cur="" _comp_compgen_filedir >/dev/null')

@pytest.mark.parametrize("funcname", "f f2".split())
def test_2(self, bash, functions, funcname):
Expand Down

0 comments on commit 7b4c531

Please sign in to comment.