Skip to content

Commit

Permalink
fix path comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
frostming committed May 25, 2021
1 parent e4ee767 commit 680298e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ def test_expend_env_vars_in_auth(given, expected, monkeypatch):

def test_find_python_in_path(tmp_path):

assert utils.find_python_in_path(sys.executable) == pathlib.Path(sys.executable)
assert (
utils.find_python_in_path(sys.executable)
== pathlib.Path(sys.executable).resolve()
)

posix_path_to_executable = pathlib.Path(sys.executable).as_posix().lower()
if sys.platform == "darwin":
Expand Down

0 comments on commit 680298e

Please sign in to comment.