Skip to content

TST: add a custom pytest session header to make runtime state (free-threading, JIT) visible#565

Draft
neutrinoceros wants to merge 1 commit into
pydata:masterfrom
neutrinoceros:tst/pytest-header
Draft

TST: add a custom pytest session header to make runtime state (free-threading, JIT) visible#565
neutrinoceros wants to merge 1 commit into
pydata:masterfrom
neutrinoceros:tst/pytest-header

Conversation

@neutrinoceros

@neutrinoceros neutrinoceros commented May 31, 2026

Copy link
Copy Markdown
Collaborator

runtime-introspect is a tiny library authored by yours truly. It's also distributed on conda-forge.

@neutrinoceros neutrinoceros marked this pull request as draft May 31, 2026 15:31
@neutrinoceros

Copy link
Copy Markdown
Collaborator Author

to my surprise, the header still doesn't appear here even after #566. I'm wondering if an embedded conftest.py is just not collected in time for this hook to have a visible effect.

@neutrinoceros

Copy link
Copy Markdown
Collaborator Author

Indeed, per the documentation

This hook is only called for initial conftests.

though from what I grasp, bottleneck/conftest.py should still be picked up as an "initial" conftest, as it lives in the parent directory to bottleneck/tests. It's possible the phrasing is just misleading, or that the discovery logic is actually broken in pytest itself.

@neutrinoceros

Copy link
Copy Markdown
Collaborator Author

pytest-dev/pytest#14557

@neutrinoceros

Copy link
Copy Markdown
Collaborator Author

#573 makes this work as expected for pytest ., but not with --pyargs. I don't think CI should only exercise this mode, and I'd be in favor of changing our primary way to run tests to the default pytest mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant