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 transient bug in test with array_equal of empty arrays #1374

Merged
merged 3 commits into from Sep 26, 2023

Conversation

tbennun
Copy link
Collaborator

@tbennun tbennun commented Sep 25, 2023

In some specific random seeds, the following error occurs:

tests/numpy/ufunc_support_test.py:130: in test_ufunc_add_where
    assert (not np.array_equal((A + B)[np.logical_not(W)], C[np.logical_not(W)]))
E   assert not True
E    +  where True = <function array_equal at 0x7f64de13d730>(array([], dtype=int32), array([], dtype=int32))
E    +    where <function array_equal at 0x7f64de13d730> = np.array_equal

This PR patches it by freezing the random seed.

@tbennun tbennun merged commit f6263b5 into master Sep 26, 2023
9 checks passed
@tbennun tbennun deleted the where-testfix branch September 26, 2023 13:04
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.

None yet

2 participants