Commit b8a6081e authored by Mark Florisson's avatar Mark Florisson

Fix failing nan_init sequential test

parent 096c587d
...@@ -42,4 +42,5 @@ def test_num_threads(): ...@@ -42,4 +42,5 @@ def test_num_threads():
return num_threads return num_threads
OPENMP_PARALLEL = True
include "sequential_parallel.pyx" include "sequential_parallel.pyx"
...@@ -237,7 +237,9 @@ def test_nan_init(): ...@@ -237,7 +237,9 @@ def test_nan_init():
with nogil, cython.parallel.parallel(): with nogil, cython.parallel.parallel():
c1 = 16 c1 = 16
assert c1 == 20, c1 if globals().get('OPENMP_PARALLEL'):
# We only reach here when we are included by parallel.pyx
assert c1 == 20, c1
cdef void nogil_print(char *s) with gil: cdef void nogil_print(char *s) with gil:
print s.decode('ascii') print s.decode('ascii')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment