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

fix: capture UserWarning in tests that trigger it #228

Merged
merged 1 commit into from
Nov 9, 2020

Conversation

scanny
Copy link
Contributor

@scanny scanny commented Nov 6, 2020

The smoothing work generated a large number of UserWarning messages from tests that were not captured and therefore appeared as noise in the pytest output.

Capture all of these and inspect them in each test to make sure the right one is being triggered.

Correct several tests that were improperly emitting warnings or were emitting the wrong warning for the test case.

Remove unnecessary fixtures for smoothing-failure cases because those can simply be checked against the unsmoothed output.

@scanny
Copy link
Contributor Author

scanny commented Nov 6, 2020

@ernestoarbitrio can you review this PR and merge it to master once approved? No release, just want to base the remaining work I'm doing on this so want it on master.

The smoothing work generated a large number of UserWarning messages from
tests that were not captured and therefore appeared as noise in the
pytest output.

Capture all of these and inspect them in each test to make sure the
right one is being triggered.

Correct several tests that were improperly emitting warnings or were
emitting the wrong warning for the test case.

Remove unnecessary fixtures for smoothing-failure cases because those
can simply be checked against the unsmoothed output.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 85edbe2 on fix-smoothing-warnings into b0c4a05 on master.

@ernestoarbitrio ernestoarbitrio merged commit b7c8f69 into master Nov 9, 2020
@ernestoarbitrio ernestoarbitrio deleted the fix-smoothing-warnings branch November 9, 2020 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants