Skip to content

Commit

Permalink
Mark retain_pytest_handlers as in internal
Browse files Browse the repository at this point in the history
  • Loading branch information
realshouzy committed Jun 10, 2024
1 parent 6553516 commit fea92e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@


# https://github.com/pytest-dev/pytest/discussions/11618
def retain_pytest_handlers(f: Callable[_P, _R]) -> Callable[_P, _R]:
def _retain_pytest_handlers(f: Callable[_P, _R]) -> Callable[_P, _R]:
@wraps(f)
def wrapper(*args: _P.args, **kwargs: _P.kwargs) -> _R:
pytest_handlers: list[logging.Handler] = [
Expand All @@ -43,7 +43,7 @@ def _keep_pytest_handlers_during_dict_config(monkeypatch: pytest.MonkeyPatch) ->
monkeypatch.setattr(
logging.config,
"dictConfig",
retain_pytest_handlers(logging.config.dictConfig),
_retain_pytest_handlers(logging.config.dictConfig),
)


Expand Down

0 comments on commit fea92e4

Please sign in to comment.