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 76e5eef commit 2004bb6Copy full SHA for 2004bb6
src/_pytest/timing.py
@@ -84,6 +84,7 @@ def time(self) -> float:
84
return self._current_time
85
86
def patch(self, monkeypatch: MonkeyPatch) -> None:
87
+ # pylint: disable-next=import-self
88
from _pytest import timing # noqa: PLW0406
89
90
monkeypatch.setattr(timing, "sleep", self.sleep)
testing/python/approx.py
@@ -5,6 +5,8 @@
5
import decimal
6
from decimal import Decimal
7
from fractions import Fraction
8
+from math import inf
9
+from math import nan
10
from math import sqrt
11
import operator
12
from operator import eq
@@ -16,9 +18,6 @@
16
18
from pytest import approx
17
19
20
-inf, nan = float("inf"), float("nan")
-
21
22
@pytest.fixture
23
def mocked_doctest_runner(monkeypatch):
24
import doctest
0 commit comments