We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7dc06c commit 0ae5be9Copy full SHA for 0ae5be9
src/_pytest/timing.py
@@ -5,6 +5,7 @@
5
6
Fixture "mock_timing" also interacts with this module for pytest's own tests.
7
"""
8
+
9
from __future__ import annotations
10
11
import dataclasses
@@ -41,7 +42,8 @@ def time(self) -> float:
41
42
return self._current_time
43
44
def patch(self, monkeypatch: MonkeyPatch) -> None:
- from _pytest import timing
45
+ from _pytest import timing # noqa: PLW0406
46
47
monkeypatch.setattr(timing, "sleep", self.sleep)
48
monkeypatch.setattr(timing, "time", self.time)
49
monkeypatch.setattr(timing, "perf_counter", self.time)
0 commit comments