Debian Codegraph @

testing/web-platform/tests/tools/third_party/pytest/src/_pytest/timing.py

raw
1 """Indirection for time functions.
2
3 We intentionally grab some "time" functions internally to avoid tests mocking "time" to affect
4 pytest runtime information (issue #185).
5
6 Fixture "mock_timing" also interacts with this module for pytest's own tests.
7 """
8
9 from time import perf_counter
10 from time import sleep
11 from time import time
12
13
14 __all__ = ["perf_counter", "sleep", "time"]