Skip to content

TST: Add fixture to avoid issue with randomizing test order.#22931

Merged
seberg merged 1 commit intonumpy:mainfrom
rossbar:fix-gh-22825
Jan 5, 2023
Merged

TST: Add fixture to avoid issue with randomizing test order.#22931
seberg merged 1 commit intonumpy:mainfrom
rossbar:fix-gh-22825

Conversation

@rossbar
Copy link
Copy Markdown
Contributor

@rossbar rossbar commented Jan 5, 2023

Adds a missing test fixture to prevent cross-talk between polynomial printing test classes when the test order is randomized with pytest-randomly.

Addresses the immediate issue #22825 though there is another, deeper issue with polynomial printing thread safety. Therefore #22825 should either be left open or a follow-up issue opened.

@mattip
Copy link
Copy Markdown
Member

mattip commented Jan 5, 2023

Makes sense as a work-around. Will we remember to remove it when a fix for #22825 is found?

@seberg
Copy link
Copy Markdown
Member

seberg commented Jan 5, 2023

Thanks. If we want to fix it, probably should go full way and create a context var and manager? Overall, I doubt its high priority, since the main point of this is to have different defaults in various terminals.

@seberg seberg merged commit c1697e0 into numpy:main Jan 5, 2023
@rossbar rossbar deleted the fix-gh-22825 branch January 6, 2023 02:17
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Jan 8, 2023
@charris charris removed this from the 1.24.2 release milestone Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants