Skip to content

Commit 77f8894

Browse files
committed
simplify fixture
1 parent e268e44 commit 77f8894

File tree

1 file changed

+4
-4
lines changed
  • packages/pytest-simcore/src/pytest_simcore

1 file changed

+4
-4
lines changed

packages/pytest-simcore/src/pytest_simcore/logging.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010

1111

1212
@pytest.fixture(autouse=True)
13-
def preserve_caplog_for_async_logging(
14-
request: pytest.FixtureRequest, mocker: MockerFixture
15-
) -> None:
16-
# Patch setup_async_loggers_lifespan to preserve caplog handlers
13+
def preserve_caplog_for_async_logging(mocker: MockerFixture) -> None:
14+
# Patch setup_async_loggers_lifespan to preserve caplog handlers,
15+
# and pytest logs in general as pytest captures logs in a special way
16+
# that is not compatible with the queue handler used in async logging.
1717
original_setup = setup_async_loggers_lifespan
1818

1919
@contextmanager

0 commit comments

Comments
 (0)