Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip memray on pypy #3286

Merged
merged 5 commits into from
Jan 23, 2024
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 9 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,16 @@ def tests_impl(
# Print OpenSSL information.
session.run("python", "-m", "OpenSSL.debug")

pquentin marked this conversation as resolved.
Show resolved Hide resolved
session_python_info = session.run(
"python",
"-c",
"import sys; print(sys.implementation.name,sys.version_info.releaselevel)",
pquentin marked this conversation as resolved.
Show resolved Hide resolved
silent=True,
).strip() # type: ignore[union-attr] # mypy doesn't know that silent=True will return a string
implementation_name, release_level = session_python_info.split(" ")

memray_supported = True
if sys.implementation.name != "cpython" or sys.version_info.releaselevel != "final":
if implementation_name != "cpython" or release_level != "final":
memray_supported = False # pytest-memray requires CPython 3.8+
elif sys.platform == "win32":
memray_supported = False
Expand Down