Debian Codegraph @

test/low_level/util.py

raw symbols SCIP
1 import functools
2
3 import pytest
4
5 from pyinstrument.low_level.stat_profile import setstatprofile as setstatprofile_c
6 from pyinstrument.low_level.stat_profile_python import setstatprofile as setstatprofile_python
7
8 """
9 Parametrizes the test with both the C and Python setstatprofile, just to check
10 that the Python one is up-to-date with the C version.
11 """
12 parametrize_setstatprofile = pytest.mark.parametrize(
13 "setstatprofile",
14 [setstatprofile_c, setstatprofile_python],
15 )