Skip to content

Commit

Permalink
doc: update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
msto committed Sep 19, 2024
1 parent 425738c commit 19893fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/util/test_executable_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ def test_validate_executable_path(tmp_path: Path) -> None:
2. The absolute path to the executable is passed, either as a string or a Path.
"""
expected_path = tmp_path / "yes"
expected_path.touch() # create the file
expected_path.chmod(755) # make it executable
expected_path.touch()
expected_path.chmod(755)

# Clear the PATH, in case the user has a local version of `yes` elsewhere on their PATH
# Clear the PATH, to override any local versions of `yes` on the user's PATH
with mock.patch.dict(os.environ, clear=True):
os.environ["PATH"] = str(tmp_path)

Expand Down

0 comments on commit 19893fd

Please sign in to comment.