Skip to content

Commit

Permalink
Limit to sys.executbale check to linux again
Browse files Browse the repository at this point in the history
  • Loading branch information
konstin committed Apr 26, 2023
1 parent d773f75 commit d91865a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test-crates/pyo3-mixed/check_installed/check_installed.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@
# vs
# {prefix}/Python.framework/Versions/3.10/bin/python3.10
# on cirrus ci)
# On windows, cpython resolves while pypy doesn't, also the script for cpython is
# actually as distinct file from the system interpreter
# On windows, cpython resolves while pypy doesn't.
# The script for cpython is actually a distinct file from the system interpreter for
# windows and mac
# On alpine/musl, rust_args is empty
if len(rust_args) > 0 and platform.system() != "Windows":
if len(rust_args) > 0 and platform.system() == "Linux":
assert os.path.samefile(rust_args[0], sys.executable), (
rust_args,
sys.executable,
Expand Down

0 comments on commit d91865a

Please sign in to comment.