Skip to content

Commit cc81fb2

Browse files
authored
skip this test if NEST is compiled without MPI
1 parent c5b9ba8 commit cc81fb2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

testsuite/pytests/test_connect_all_to_all.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@
2727
import numpy as np
2828
import scipy.stats
2929

30+
HAVE_MPI = nest.ll_api.sli_func("statusdict/have_mpi ::")
3031
HAVE_OPENMP = nest.ll_api.sli_func("is_threaded")
3132

3233

34+
@unittest.skipIf(not HAVE_MPI, "NEST was compiled without MPI")
3335
@unittest.skipIf(not HAVE_OPENMP, "NEST was compiled without multi-threading")
3436
@nest.ll_api.check_stack
3537
class TestAllToAll(connect_test_base.ConnectTestBase):

0 commit comments

Comments
 (0)