Skip to content

Commit

Permalink
fix fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
radoering committed Feb 8, 2025
1 parent 79f7eb3 commit 1fbe787
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,10 @@ def implementation(self) -> str:
return "PyPy" if "pypy" in str(self.executable) else "CPython"

def _get_version(self) -> packaging.version.Version:
return packaging.version.Version(self.executable.parent.name.split("@")[1])
install_dir = self.executable.parent
if not WINDOWS:
install_dir = install_dir.parent
return packaging.version.Version(install_dir.name.split("@")[1])

def _get_interpreter(self) -> str:
return str(self.executable)
Expand Down

0 comments on commit 1fbe787

Please sign in to comment.