Skip to content

Commit

Permalink
refactor: move the instrumentation wrapper directly in the instrument
Browse files Browse the repository at this point in the history
  • Loading branch information
art049 committed Sep 18, 2024
1 parent 831d7dc commit a6ab55e
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
from typing import TYPE_CHECKING

from pytest_codspeed import __version__
from pytest_codspeed._wrapper import get_lib
from pytest_codspeed.instruments import Instrument, MeasurementMode
from pytest_codspeed.instruments.cpu_instrumentation._wrapper import get_lib

if TYPE_CHECKING:
from typing import Any, Callable

from pytest import Session

from pytest_codspeed._wrapper import LibType
from pytest_codspeed.instruments import P, T
from pytest_codspeed.instruments.cpu_instrumentation._wrapper import LibType
from pytest_codspeed.plugin import CodSpeedConfig

SUPPORTS_PERF_TRAMPOLINE = sys.version_info >= (3, 12)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from typing import TYPE_CHECKING

import pytest

from pytest_codspeed.instruments import MeasurementMode

if TYPE_CHECKING:
Expand Down
1 change: 1 addition & 0 deletions tests/test_pytest_plugin_cpu_instrumentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
skip_without_pytest_xdist,
skip_without_valgrind,
)

from pytest_codspeed.instruments import MeasurementMode


Expand Down

0 comments on commit a6ab55e

Please sign in to comment.