Skip to content

BUG: Ensure internal tester exits with error if needed - #5120

Merged
josef-pkt merged 3 commits into
statsmodels:masterfrom
bashtage:fix-internal-tester
Sep 9, 2018
Merged

josef-pkt merged 3 commits into
statsmodels:masterfrom
bashtage:fix-internal-tester

Conversation

@bashtage

@bashtage bashtage commented Sep 6, 2018

Copy link
Copy Markdown
Member

Ensure that the internal tester errors when an internal error was encountered

@coveralls

coveralls commented Sep 6, 2018 •

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.004%) to 83.922% when pulling 6c6487c on bashtage:fix-internal-tester into dc9d1b1 on statsmodels:master.

@josef-pkt

Copy link
Copy Markdown
Member

this exits the interpreter after a call to statsmodels.test(), doesn't it?

This is not intended behavior, i.e. we want to be able to use repeated calls in the same python session.

statsmodels.regression.test()
statsmodels.genmode.test()
...

@bashtage

bashtage commented Sep 6, 2018 via email

Copy link
Copy Markdown
Member Author

@josef-pkt

Copy link
Copy Markdown
Member

kwarg sounds good

In an old version I had
sudo $PYTHON -c "import statsmodels as sm; a=sm.test(); import sys; sys.exit((len(a.failures)+len(a.errors))>0)"

e.g. https://github.com/statsmodels/statsmodels/pull/1082/files#diff-354f30a63fb0907d4ad57269548329e3L49

but adding an exit kwarg is simpler

@bashtage
bashtage force-pushed the fix-internal-tester branch from 025f12f to 78ce119 Compare September 6, 2018 17:51
@codecov

codecov Bot commented Sep 6, 2018 •

Copy link
Copy Markdown

Codecov Report

Merging #5120 into master will increase coverage by <.01%.
The diff coverage is 84.37%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5120      +/-   ##
==========================================
+ Coverage    81.4%   81.41%   +<.01%     
==========================================
  Files         581      582       +1     
  Lines       90327    90334       +7     
  Branches    10107    10108       +1     
==========================================
+ Hits        73532    73544      +12     
+ Misses      14494    14492       -2     
+ Partials     2301     2298       -3
Impacted Files Coverage Δ
statsmodels/__init__.py 47.5% <25%> (-2.5%) ⬇️
statsmodels/tsa/statespace/tests/test_save.py 97.82% <92.85%> (-2.18%) ⬇️
statsmodels/info.py 100% <0%> (ø)
statsmodels/api.py 91.3% <0%> (+0.19%) ⬆️
statsmodels/regression/mixed_linear_model.py 89.77% <0%> (+0.79%) ⬆️

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 dc9d1b1...6c6487c. Read the comment docs.

@bashtage
bashtage force-pushed the fix-internal-tester branch 2 times, most recently from 8f04d4a to c0a4e64 Compare September 7, 2018 13:11
@bashtage bashtage changed the title BUG: Ensure internal tester exists with error if needed BUG: Ensure internal tester exits with error if needed Sep 7, 2018
@bashtage
bashtage force-pushed the fix-internal-tester branch 2 times, most recently from c1b004e to d6383eb Compare September 7, 2018 16:43
Ensure that the internal tester errors when an internal error was encountered
Save pickles to a safe location rather than the cwd which might not be writeable
@bashtage
bashtage force-pushed the fix-internal-tester branch 3 times, most recently from a7267c3 to e38b4f6 Compare September 8, 2018 13:53
Run test using internal tester to ensure test works from
intall
@josef-pkt

Copy link
Copy Markdown
Member

looks good to me as far as I can tell

green enough, merging

@bashtage Thank you

@josef-pkt
josef-pkt merged commit 9936023 into statsmodels:master Sep 9, 2018
@josef-pkt josef-pkt added this to the 0.10 milestone Sep 9, 2018
@bashtage
bashtage deleted the fix-internal-tester branch September 9, 2018 07:32
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.

3 participants