Skip to content

Closes 4726, standardizing use of seed in unit tests - #4748

Merged
ajpotts merged 1 commit into
Bears-R-Us:mainfrom
drculhane:Closes-4726
Aug 25, 2025
Merged

ajpotts merged 1 commit into
Bears-R-Us:mainfrom
drculhane:Closes-4726

Conversation

@drculhane

Copy link
Copy Markdown
Contributor

Closes #4726.

In almost all cases, the seed in the unit tests has been set to the standard pytest.seed.

There are a handful of exceptions where hardcoded seeds were retained, because the unit test specifically checks for exact known results.

@ajpotts ajpotts left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great work! Thanks for this!

Comment thread tests/array_api/array_manipulation.py Resolved
Comment thread tests/numpy/random_test.py Resolved

@jaketrookman jaketrookman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good

@ajpotts
ajpotts enabled auto-merge August 25, 2025 13:33
@drculhane
drculhane force-pushed the Closes-4726 branch 2 times, most recently from 396bdc8 to ab86d70 Compare August 25, 2025 17:58
@ajpotts
ajpotts added this pull request to the merge queue Aug 25, 2025
Merged via the queue into Bears-R-Us:main with commit 36716d3 Aug 25, 2025
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.

standardize seed for unit tests

3 participants