Skip to content

Commit 7041e72

Browse files
committed
fixup! Revisit PytesterManageEnv
1 parent abfb50b commit 7041e72

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/_pytest/pytester/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
from _pytest.config import ExitCode
4545
from _pytest.fixtures import FixtureRequest
4646
from _pytest.main import Session
47-
from _pytest.monkeypatch import MonkeyPatch
4847
from _pytest.nodes import Collector
4948
from _pytest.nodes import Item
5049
from _pytest.outcomes import Failed
@@ -55,14 +54,14 @@
5554
from _pytest.reports import TestReport
5655
from _pytest.tmpdir import TempdirFactory
5756

58-
5957
if TYPE_CHECKING:
6058
from typing import Any
6159
from typing import Type
62-
from typing_extensions import Literal # noqa: F401
6360

6461
import pexpect
6562

63+
from _pytest.monkeypatch import MonkeyPatch
64+
6665

6766
IGNORE_PAM = [ # filenames added when obtaining details about the current user
6867
"/var/lib/sss/mc/passwd"
@@ -903,6 +902,7 @@ def copy_example(self, name=None):
903902
904903
"""
905904
import warnings
905+
906906
from _pytest.warning_types import PYTESTER_COPY_EXAMPLE
907907

908908
warnings.warn(PYTESTER_COPY_EXAMPLE, stacklevel=2)

0 commit comments

Comments
 (0)