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

Verify that macros do work without any imports #3188

Merged
merged 2 commits into from May 29, 2023

Conversation

lifthrasiir
Copy link
Contributor

Currently virtually all (positive) tests import pyo3::prelude::*, making it hard to detect a certain class of bugs. This PR adds an explicit test that never imports from pyo3 to fix this.

Also this fixes a minor bug from #3157 which didn't work without use pyo3::types::PyType;. I think this should be a part of 0.19.0 (#3187), so no additional changelog would be required (as this feature is new in 0.19.0).

@messense messense added the CI-skip-changelog Skip checking changelog entry label May 29, 2023
@adamreichold
Copy link
Member

Great find with a principled solution! I agree that this should be part of 0.19.0.

bors r+

@davidhewitt
Copy link
Member

Agreed, thanks!

@davidhewitt davidhewitt mentioned this pull request May 29, 2023
@bors
Copy link
Contributor

bors bot commented May 29, 2023

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot merged commit 03137e4 into PyO3:main May 29, 2023
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI-skip-changelog Skip checking changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants