Skip to content
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

Hook pytest_runtest_logfinish is not triggered for marked tests #83

Closed
KillAChicken opened this issue Mar 4, 2019 · 0 comments
Closed

Comments

@KillAChicken
Copy link

KillAChicken commented Mar 4, 2019

Reproduction path:

conftest.py

def pytest_runtest_logfinish():
    print("LogFinish")

test_file

import pytest

@pytest.mark.flaky(reruns=2)
def test_logfinish():
    pass

Run ./virt_env/bin/py.test . -s shows that the hook is not triggered. However it is triggered (the message "LogFinish" is shown) if the flaky mark is removed.

Environment

pytest (4.3.0)
pytest-rerunfailures (6.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant