Skip to content

Warnings always raised in WarningsRecorder #922

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

Merged
merged 1 commit into from
Aug 7, 2015

Conversation

hunse
Copy link
Contributor

@hunse hunse commented Aug 6, 2015

This ensures that if tests for warnings are run more than once,
the warning is still raised as expected.

This ensures that if tests for warnings are run more than once,
the warning is still raised as expected.
@nicoddemus nicoddemus merged commit 39f1471 into pytest-dev:master Aug 7, 2015
@nicoddemus
Copy link
Member

Thanks @hunse! 😄

FYI, I changed your test to use testdir in 2bbe709:

Because the test relies that two subsequent tests that use pytest.warns to capture the exact same warning, it is better to use testdir to ensure test execution occurs in the order we expect (which might be different with pytest-xdist or pytest-random for example).

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

Successfully merging this pull request may close these issues.

2 participants