New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
BeyondEvil opened this Issue Dec 1, 2015 · 1 comment

Comments

Projects
None yet
3 participants
@BeyondEvil

BeyondEvil commented Dec 1, 2015

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.

@markshao

This comment has been minimized.

markshao commented Dec 1, 2015

I can reproduce this in my environment , looks like the code in pytest_configure function is not executed .

st4nkw1z added a commit to st4nkw1z/pytest that referenced this issue Jun 24, 2016

st4nkw1z added a commit to st4nkw1z/pytest that referenced this issue Jun 24, 2016

st4nkw1z added a commit to st4nkw1z/pytest that referenced this issue Jun 24, 2016

st4nkw1z added a commit to st4nkw1z/pytest that referenced this issue Jun 25, 2016

tomviner added a commit to tomviner/pytest that referenced this issue Jun 25, 2016

tomviner added a commit to tomviner/pytest that referenced this issue Jul 24, 2016

tomviner added a commit to tomviner/pytest that referenced this issue Jul 24, 2016

tomviner added a commit to tomviner/pytest that referenced this issue Jul 24, 2016

tomviner added a commit to tomviner/pytest that referenced this issue Jul 24, 2016

tomviner added a commit to tomviner/pytest that referenced this issue Jul 24, 2016

nicoddemus added a commit that referenced this issue Jul 24, 2016

Merge pull request #1763 from tomviner/issue1210-exit-msg
Fix #1210 display msg for early calls to exit

Stranger6667 added a commit to Stranger6667/pytest that referenced this issue Jul 25, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment