Commit f8e58c5e authored by Noam Hershtig's avatar Noam Hershtig

Test conditional GILStatNode with compile-time constant as condition

parent 412b232e
......@@ -96,6 +96,10 @@ def test_nested():
return res
DEF FREE_GIL = True
DEF FREE_GIL_FALSE = False
def test_nested_condition_false():
"""
>>> test_nested_condition_false()
......@@ -103,12 +107,12 @@ def test_nested_condition_false():
"""
cdef int res = 0
with gil(False):
with gil(FREE_GIL_FALSE):
res = f_gil(res)
with nogil(False):
res = f_gil(res)
with nogil(True):
with nogil(FREE_GIL):
res = f_nogil(res)
with gil(False):
res = f_nogil(res)
......
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