Commit 7c82aa57 authored by Stefan Behnel's avatar Stefan Behnel

Let a tracing test run slower to prevent div-by-zero crashes in line_profiler...

Let a tracing test run slower to prevent div-by-zero crashes in line_profiler due to measured zero runtime.
parent 864897c7
......@@ -109,6 +109,9 @@ def cy_generator(int n):
x = 1
for i in range(n):
yield x + 2
# waste some time to avoid 0 runtimes (line profiler cannot handle those)
while <object>(i + x) < n + 10:
i += 2
@cython.binding(True)
......
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