Skip to content

Commit 23680c9

Browse files
committed
TST: skip test that uses fork if there are running threads
1 parent 89fd51c commit 23680c9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

numpy/linalg/tests/test_linalg.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import os
55
import sys
66
import itertools
7+
import threading
78
import traceback
89
import textwrap
910
import subprocess
@@ -1943,7 +1944,9 @@ def test_generalized_raise_multiloop():
19431944

19441945
assert_raises(np.linalg.LinAlgError, np.linalg.inv, x)
19451946

1946-
1947+
@pytest.mark.skipif(
1948+
threading.active_count() > 1,
1949+
reason="skipping test that uses fork because there are multiple threads")
19471950
def test_xerbla_override():
19481951
# Check that our xerbla has been successfully linked in. If it is not,
19491952
# the default xerbla routine is called, which prints a message to stdout

0 commit comments

Comments
 (0)