Skip to content

Fix empty caplog error #13

@eyvorchuk

Description

@eyvorchuk

When running pytest tests/test_logging.py, the test_log_handler function passes. When running pytest, the function fails with the following output error message:

E       AssertionError: assert 'Process completed' in ''
E        +  where '' = <_pytest.logging.LogCaptureFixture object at 0x7fb4276e3ac8>.text

It appears that the root logger is modified in a different file/module. There is currently a try-except block to temporarily deal with this, but ideally the test should pass regardless of other test files being run.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions