Skip to content

warn when logging fails #6433

@gaborbernat

Description

@gaborbernat
def func():
    logging.error("%s" , "a", "b")

def test_func():
    func()

Now an expectation will be thrown and written on the output... but no warning is thrown... so the test run can't be marked as failed. 🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    plugin: loggingrelated to the logging builtin plugintype: enhancementnew feature or API change, should be merged into features branchtype: feature-branchnew feature or API change, should be merged into features branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions