Skip to content

Commit

Permalink
fix(test): readlinks for python before comparing
Browse files Browse the repository at this point in the history
  • Loading branch information
efiop committed Apr 1, 2024
1 parent a4f265e commit cbe48c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,11 +586,14 @@ def test_local_python_environment():


def test_path_on_local():
import os
import shutil

local_env = LocalPythonEnvironment()
with local_env.connect() as connection:
assert connection.run(partial(shutil.which, "python")) == shutil.which("python")
assert os.readlink(
connection.run(partial(shutil.which, "python"))
) == os.readlink(shutil.which("python"))


def test_isolate_server_environment(isolate_server):
Expand Down

0 comments on commit cbe48c8

Please sign in to comment.