Skip to content

msg in pytest.exit(msg) doesn't get printed when called in pytest hook #1210

Closed
@BeyondEvil

Description

@BeyondEvil

OSX 10.10.4
pytest version 2.8.2
Python 2.7.6

In Conftest.py

import pytest
def pytest_configure(config):
    if condition not met:
        pytest.exit("oh noes")

pytest exits silently w/o printing 'msg' ("oh noes") regardless of any -s, -v, -q or -rx flags.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueeasy issue that is friendly to new contributorstatus: help wanteddevelopers would like help from experts on this topictopic: reportingrelated to terminal output and user-facing messages and errorstype: bugproblem that needs to be addressed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions