diff options
Diffstat (limited to 'tests/run/trace_nogil.pyx')
-rw-r--r-- | tests/run/trace_nogil.pyx | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/run/trace_nogil.pyx b/tests/run/trace_nogil.pyx deleted file mode 100644 index dee443e5b..000000000 --- a/tests/run/trace_nogil.pyx +++ /dev/null @@ -1,22 +0,0 @@ -# cython: linetrace=True - -cdef void foo(int err) nogil except *: - with gil: - raise ValueError(err) - - -# Test from gh-4637 -def handler(int err): - """ - >>> handler(0) - All good - >>> handler(1) # doctest: +ELLIPSIS - Traceback (most recent call last): - ... - ValueError: 1 - """ - if (err % 2): - with nogil: - foo(err) - else: - print("All good") |