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

Fix a test which randomly makes pytest fail #316

Merged
merged 1 commit into from
May 31, 2024

Conversation

nplinden
Copy link

@nplinden nplinden commented May 31, 2024

In sandy.sampling.multi_run, there is a test that when generating two samples with two processes, the resulting files are differents. However the comparison function is parametrized with shallow = True, in the event that the files are created by the two processed at the same time, the assert will fail.

As a result, pytest runs randomly fail.

This PR fixes this issue by setting shallow = False in the test

@nplinden nplinden changed the base branch from develop to v1.1 May 31, 2024 09:12
@luca-fiorito-11 luca-fiorito-11 merged commit bcdff9a into luca-fiorito-11:v1.1 May 31, 2024
1 check passed
@luca-fiorito-11 luca-fiorito-11 added bug Something isn't working enhancement New feature or request labels Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants