Skip to content

TST: use pytest.warns instead of npt.assert_warns - #4907

Closed
jbrockmendel wants to merge 1 commit into
statsmodels:masterfrom
jbrockmendel:assert_warns
Closed

jbrockmendel wants to merge 1 commit into
statsmodels:masterfrom
jbrockmendel:assert_warns

Conversation

@jbrockmendel

Copy link
Copy Markdown
Contributor

Also uses more readable contextmanager syntax.

@coveralls

coveralls commented Aug 15, 2018 •

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.02%) to 83.883% when pulling 1c2dbf7 on jbrockmendel:assert_warns into 7a152a3 on statsmodels:master.

@ChadFulton ChadFulton changed the title use pytest.warns instead of npt.assert_warns TST: use pytest.warns instead of npt.assert_warns Aug 17, 2018
@jbrockmendel

Copy link
Copy Markdown
Contributor Author

rebased @josef-pkt ping

@codecov-io

Copy link
Copy Markdown

Codecov Report

Merging #4907 into master will decrease coverage by 0.01%.
The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4907      +/-   ##
==========================================
- Coverage   81.38%   81.37%   -0.02%     
==========================================
  Files         581      581              
  Lines       90194    90199       +5     
  Branches    10077    10077              
==========================================
- Hits        73406    73401       -5     
- Misses      14498    14505       +7     
- Partials     2290     2293       +3
Impacted Files Coverage Δ
statsmodels/tools/testing.py 80% <ø> (ø) ⬆️
statsmodels/tsa/tests/test_stattools.py 97.4% <ø> (ø) ⬆️
statsmodels/stats/tests/test_anova_rm.py 100% <ø> (ø) ⬆️
statsmodels/stats/tests/test_power.py 93.54% <0%> (-0.22%) ⬇️
statsmodels/regression/tests/test_theil.py 100% <100%> (ø) ⬆️
statsmodels/miscmodels/tests/test_poisson.py 100% <100%> (ø) ⬆️
statsmodels/regression/tests/test_robustcov.py 99.27% <100%> (ø) ⬆️
statsmodels/regression/mixed_linear_model.py 88.97% <0%> (-0.8%) ⬇️
statsmodels/iolib/tests/test_table_econpy.py 100% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7a152a3...1c2dbf7. Read the comment docs.

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

@josef-pkt green, single commit, super easy

This was referenced Aug 22, 2018
@jbrockmendel
jbrockmendel deleted the assert_warns branch September 7, 2018 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants