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

Use Python::with_gil in tests #2518

Merged
merged 2 commits into from
Jul 20, 2022
Merged

Conversation

mejrs
Copy link
Member

@mejrs mejrs commented Jul 19, 2022

This just updates the tests - no actual changes.

@@ -181,7 +181,7 @@ jobs:
run: |
set -x
cargo update -p indexmap --precise 1.6.2
cargo update -p hashbrown:0.12.2 --precise 0.9.1
cargo update -p hashbrown:0.12.3 --precise 0.9.1
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uh, so does this need bumping every time hashbrown releases? 🤔

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. In rust-numpy, I avoid this using Python scripting but that is not pretty either: https://github.com/PyO3/rust-numpy/blob/main/.github/workflows/ci.yml#L133-L143

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doing it programatically makes sense; could potentially put that into the noxfile / xtask so we can just do nox -s set-mrsv-versions here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(We can leave this for a separate PR)

Copy link
Member

@davidhewitt davidhewitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks very much for doing this! I'd better get on and rebase #1788 to avoid people adding new acquire_gil tests!

@davidhewitt davidhewitt merged commit e40b252 into PyO3:main Jul 20, 2022
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.

None yet

3 participants