Skip to content

Commit 2004bb6

Browse files
Upgrade to pylint 4.0.2
1 parent 76e5eef commit 2004bb6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/_pytest/timing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def time(self) -> float:
8484
return self._current_time
8585

8686
def patch(self, monkeypatch: MonkeyPatch) -> None:
87+
# pylint: disable-next=import-self
8788
from _pytest import timing # noqa: PLW0406
8889

8990
monkeypatch.setattr(timing, "sleep", self.sleep)

testing/python/approx.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
import decimal
66
from decimal import Decimal
77
from fractions import Fraction
8+
from math import inf
9+
from math import nan
810
from math import sqrt
911
import operator
1012
from operator import eq
@@ -16,9 +18,6 @@
1618
from pytest import approx
1719

1820

19-
inf, nan = float("inf"), float("nan")
20-
21-
2221
@pytest.fixture
2322
def mocked_doctest_runner(monkeypatch):
2423
import doctest

0 commit comments

Comments
 (0)