Skip to content

Commit edc8146

Browse files
Update test_main.py
1 parent 0ef8db4 commit edc8146

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ def test_get_version_warning_offline(mocker: MockerFixture) -> None:
122122
def test_nodeps(lintable: str) -> None:
123123
"""Asserts ability to be called w/ or w/o venv activation."""
124124
env = os.environ.copy()
125+
py_path = Path(sys.executable).parent
125126
proc = subprocess.run(
126127
[str(py_path / "ansible-lint"), '--nodeps=true', lintable],
127128
check=False,
@@ -131,7 +132,6 @@ def test_nodeps(lintable: str) -> None:
131132
)
132133
assert proc.returncode == 0, proc
133134
env["ANSIBLE_LINT_NODEPS"] = "1"
134-
py_path = Path(sys.executable).parent
135135
proc = subprocess.run(
136136
[str(py_path / "ansible-lint"), lintable],
137137
check=False,

0 commit comments

Comments
 (0)