Skip to content

Commit

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

0 comments on commit d773f75

Please sign in to comment.