Coverage for /opt/homebrew/lib/python3.11/site-packages/_pytest/timing.py: 100%
4 statements
« prev ^ index » next coverage.py v7.2.3, created at 2023-05-04 13:14 +0700
« prev ^ index » next coverage.py v7.2.3, created at 2023-05-04 13:14 +0700
1"""Indirection for time functions.
3We intentionally grab some "time" functions internally to avoid tests mocking "time" to affect
4pytest runtime information (issue #185).
6Fixture "mock_timing" also interacts with this module for pytest's own tests.
7"""
8from time import perf_counter
9from time import sleep
10from time import time
12__all__ = ["perf_counter", "sleep", "time"]