Skip to content

TST: Remove __main__ sections in tests - #5156

Merged
josef-pkt merged 1 commit into
statsmodels:masterfrom
jbrockmendel:nomains
Sep 12, 2018
Merged

josef-pkt merged 1 commit into
statsmodels:masterfrom
jbrockmendel:nomains

Conversation

@jbrockmendel

Copy link
Copy Markdown
Contributor

There was in Issue recently about settling on ways to run the test suite, and IIRC one of the takeaways was that we don't want __main__ sections in test files.

Addresses many of the checkboxes in #5128.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.003%) to 83.898% when pulling 274f4e5 on jbrockmendel:nomains into 9a03cba on statsmodels:master.

@bashtage

bashtage commented Sep 9, 2018

Copy link
Copy Markdown
Member

Simple clean up. LGTM

@jbrockmendel jbrockmendel mentioned this pull request Sep 9, 2018
31 of 32 tasks
@codecov

codecov Bot commented Sep 10, 2018

Copy link
Copy Markdown

Codecov Report

Merging #5156 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5156      +/-   ##
==========================================
+ Coverage   81.41%   81.42%   +<.01%     
==========================================
  Files         581      581              
  Lines       90271    90264       -7     
  Branches    10099    10097       -2     
==========================================
- Hits        73497    73496       -1     
+ Misses      14485    14481       -4     
+ Partials     2289     2287       -2
Impacted Files Coverage Δ
statsmodels/nonparametric/tests/test_lowess.py 100% <ø> (ø) ⬆️
statsmodels/nonparametric/tests/test_kernels.py 85.39% <ø> (ø) ⬆️
statsmodels/tsa/filters/tests/test_filters.py 100% <ø> (ø) ⬆️
statsmodels/distributions/tests/test_discrete.py 100% <ø> (ø) ⬆️
statsmodels/discrete/tests/test_discrete.py 98.97% <ø> (ø) ⬆️
statsmodels/nonparametric/tests/test_kde.py 99.5% <ø> (ø) ⬆️
statsmodels/stats/tests/test_moment_helpers.py 95.55% <ø> (ø) ⬆️
statsmodels/iolib/tests/test_foreign.py 98.43% <ø> (ø) ⬆️
statsmodels/tsa/tests/test_tsa_tools.py 99.8% <ø> (ø) ⬆️
statsmodels/graphics/tests/test_mosaicplot.py 99.29% <ø> (-0.01%) ⬇️
... and 21 more

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 9a03cba...274f4e5. Read the comment docs.

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

@josef-pkt ping. We can avoid having merge conflicts pile up...

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

@josef-pkt best 90 seconds you'll spend all week

@josef-pkt

Copy link
Copy Markdown
Member

I agree, no useful information there and outdated pattern

@josef-pkt
josef-pkt merged commit 7ffda05 into statsmodels:master Sep 12, 2018
@josef-pkt

Copy link
Copy Markdown
Member

@jbrockmendel Thank you

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