File tree Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -352,18 +352,11 @@ def legacy_no_warn():
352
352
np ._set_promotion_state ("legacy" )
353
353
b .wait ()
354
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
355
361
356
def weak_warn ():
362
357
np ._set_promotion_state ("weak" )
363
358
b .wait ()
364
359
assert np ._get_promotion_state () == "weak"
365
- with pytest .raises (RuntimeWarning ):
366
- np .float16 (1 ) + 131008
367
360
368
361
task1 = threading .Thread (target = legacy_no_warn )
369
362
task2 = threading .Thread (target = weak_warn )
Original file line number Diff line number Diff line change 4
4
import os
5
5
import sys
6
6
import itertools
7
+ import threading
7
8
import traceback
8
9
import textwrap
9
10
import subprocess
@@ -1943,7 +1944,9 @@ def test_generalized_raise_multiloop():
1943
1944
1944
1945
assert_raises (np .linalg .LinAlgError , np .linalg .inv , x )
1945
1946
1946
-
1947
+ @pytest .mark .skipif (
1948
+ threading .active_count () > 1 ,
1949
+ reason = "skipping test that uses fork because there are multiple threads" )
1947
1950
def test_xerbla_override ():
1948
1951
# Check that our xerbla has been successfully linked in. If it is not,
1949
1952
# the default xerbla routine is called, which prints a message to stdout
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ if not cy.version().version_compare('>=3.0.6')
12
12
endif
13
13
14
14
base_cython_args = []
15
- if cy.version().version_compare(' >=3.1.0a0 ' )
15
+ if cy.version().version_compare(' >=3.1.0 ' )
16
16
base_cython_args += [' -Xfreethreading_compatible=True' ]
17
17
endif
18
18
You can’t perform that action at this time.
0 commit comments