Skip to content

Commit 4009150

Browse files
committed
Move nullcontext import to src._pytest.logging.
1 parent 3d7cd77 commit 4009150

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/_pytest/compat.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import inspect
55
import os
66
import sys
7-
from contextlib import nullcontext as nullcontext # noqa: F401
87
from inspect import Parameter
98
from inspect import signature
109
from pathlib import Path

src/_pytest/logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import os
55
import re
66
from contextlib import contextmanager
7+
from contextlib import nullcontext
78
from io import StringIO
89
from pathlib import Path
910
from typing import AbstractSet
@@ -21,7 +22,6 @@
2122
from _pytest._io import TerminalWriter
2223
from _pytest.capture import CaptureManager
2324
from _pytest.compat import final
24-
from _pytest.compat import nullcontext
2525
from _pytest.config import _strtobool
2626
from _pytest.config import Config
2727
from _pytest.config import create_terminal_writer

0 commit comments

Comments
 (0)