File: util.py

package info (click to toggle)
python-pyinstrument 5.1.1%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,624 kB
  • sloc: python: 6,713; ansic: 897; makefile: 46; sh: 26; javascript: 18
file content (15 lines) | stat: -rw-r--r-- 478 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import functools

import pytest

from pyinstrument.low_level.stat_profile import setstatprofile as setstatprofile_c
from pyinstrument.low_level.stat_profile_python import setstatprofile as setstatprofile_python

"""
Parametrizes the test with both the C and Python setstatprofile, just to check
that the Python one is up-to-date with the C version.
"""
parametrize_setstatprofile = pytest.mark.parametrize(
    "setstatprofile",
    [setstatprofile_c, setstatprofile_python],
)