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 unique module names in unit and integration tests #4501

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

ngoldbaum
Copy link
Contributor

@ngoldbaum ngoldbaum commented Aug 29, 2024

Refs #4265 (comment) and #4265 (comment).

Adds a dev dependency on uuid and uses it to define a helper to generate unique module names based on a base string. I then use the helper in usages of PyModule::from_code in unit and integration tests. Doctests don't need it because rustdoc spawns one process per code block.

@ngoldbaum ngoldbaum added the CI-skip-changelog Skip checking changelog entry label Aug 29, 2024
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.

Looks good to me, thanks! 👍

@davidhewitt davidhewitt added this pull request to the merge queue Aug 29, 2024
Merged via the queue into PyO3:main with commit c77b853 Aug 29, 2024
43 of 45 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.

2 participants