We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23680c9 commit 38e81bbCopy full SHA for 38e81bb
numpy/_core/tests/test_nep50_promotions.py
@@ -352,18 +352,11 @@ def legacy_no_warn():
352
np._set_promotion_state("legacy")
353
b.wait()
354
assert np._get_promotion_state() == "legacy"
355
- # turn warnings into errors, this should not warn with
356
- # legacy promotion state
357
- with warnings.catch_warnings():
358
- warnings.simplefilter("error")
359
- np.float16(1) + 131008
360
361
def weak_warn():
362
np._set_promotion_state("weak")
363
364
assert np._get_promotion_state() == "weak"
365
- with pytest.raises(RuntimeWarning):
366
367
368
task1 = threading.Thread(target=legacy_no_warn)
369
task2 = threading.Thread(target=weak_warn)
0 commit comments