Skip to content

Commit 0ae5be9

Browse files
pre-commit fixup
1 parent e7dc06c commit 0ae5be9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/_pytest/timing.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
66
Fixture "mock_timing" also interacts with this module for pytest's own tests.
77
"""
8+
89
from __future__ import annotations
910

1011
import dataclasses
@@ -41,7 +42,8 @@ def time(self) -> float:
4142
return self._current_time
4243

4344
def patch(self, monkeypatch: MonkeyPatch) -> None:
44-
from _pytest import timing
45+
from _pytest import timing # noqa: PLW0406
46+
4547
monkeypatch.setattr(timing, "sleep", self.sleep)
4648
monkeypatch.setattr(timing, "time", self.time)
4749
monkeypatch.setattr(timing, "perf_counter", self.time)

0 commit comments

Comments
 (0)