| py = '3.10'
|
|
|
| @allpythons()
|
| def test_accuracy_fast_recursive(py):
|
| result = austin("-i", "1ms", "-P", *python(py), target("recursive.py"))
|
| assert result.returncode == 0, result.stderr or result.stdout
|
|
|
| assert has_frame(result.samples, "recursive.py", "sum_up_to")
|
|
|
| for sample in result.samples:
|
| if (
|
| not sample.frames
|
| or len(sample.frames) < 2
|
| or sample.frames[1].function != "sum_up_to"
|
| ):
|
| continue
|
| if len(sample.frames) > 20:
|
| > raise AssertionError("recursive stack is not taller than actual recursion")
|
| E AssertionError: recursive stack is not taller than actual recursion
|
|
|
| test/integrity/test_accuracy.py:45: AssertionError
|