Skip to content

Commit

Permalink
Merge pull request #26503 from ngoldbaum/fix-free-threaded-test-flake
Browse files Browse the repository at this point in the history
TST: work around flaky test on free-threaded build
  • Loading branch information
charris committed May 23, 2024
2 parents 83b4a23 + 3c02936 commit 6c648e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpy/_core/tests/test_nep50_promotions.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ def weak_warn():
np._set_promotion_state("weak")
b.wait()
assert np._get_promotion_state() == "weak"
with pytest.warns(RuntimeWarning):
with pytest.raises(RuntimeWarning):
np.float16(1) + 131008

task1 = threading.Thread(target=legacy_no_warn)
Expand Down

0 comments on commit 6c648e7

Please sign in to comment.