Skip to content

un-mangle tests - #4506

Closed
jbrockmendel wants to merge 2 commits into
statsmodels:masterfrom
jbrockmendel:skip
Closed

jbrockmendel wants to merge 2 commits into
statsmodels:masterfrom
jbrockmendel:skip

Conversation

@jbrockmendel

Copy link
Copy Markdown
Contributor

please let me go through and fix these in a systematic way.

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

@josef-pkt please let us fix obviously-bad stuff like this.
@bashtage thoughts?

@ChadFulton

Copy link
Copy Markdown
Member

Although I have no knowledge about these models, this PR looks reasonable to me.

Except, what's going on with test_jac? It looks like maybe the no_info was a way to do a skip test, with the reason being that there is "no information" (I don't know what "no information" means, unfortunately). So by removing those lines, are you now allowing a parent test_jac to run when it shouldn't?

@josef-pkt

Copy link
Copy Markdown
Member

Also, this PR fails on
"E NameError: name 'pytest' is not defined"
and doesn't run the tests, AFAICS from spot checking

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

"E NameError: name 'pytest' is not defined"

Totally reasonable, fixed (and rebased to keep the git history pretty, just for you buddy!)

and doesn't run the tests, AFAICS from spot checking

Not sure I follow; what's the concern?

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

So by removing those lines, are you now allowing a parent test_jac to run when it shouldn't?

If you look at the status quo, test_jac is defined twice in each of the three affected classes.

@josef-pkt

Copy link
Copy Markdown
Member

and doesn't run the tests, AFAICS from spot checking
Not sure I follow; what's the concern?

AFAICS, the travis test run stopped before running the unit tests (pytest stops immediately on syntax and similar errors)
So, we don't know yet if any of the changes breaks other tests, like deleting the test_jac override or enabling test_pvalues (which I assume should be fine as typo fix)

@josef-pkt

Copy link
Copy Markdown
Member

Also, there are some duplicate definitions of test_jac

    def test_jac(self):
        pass

and
test_jac = no_info

in the same test class.

I remember I just fixed some test_jac, so those should work or made to work for (almost) all cases.
Checking, that's in my current WIP PR #4716
I was looking at my PR checkout.

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

Also, there are some duplicate definitions of test_jac

I'm pretty sure I caught all of those, though another set of eyeballs couldn't hurt.

Checking, that's in my current WIP PR #4716

I've got a tab open for that, will review before long.

@josef-pkt

Copy link
Copy Markdown
Member

It looks like all test_jac overrides are in NegativeBinomial.
I didn't look at it recently because I skipped it for score_factor addition. NB is too messy with the 3-in-1 model.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.03%) to 83.403% when pulling d5db9fe on jbrockmendel:skip into 8928f8d on statsmodels:master.

@coveralls

coveralls commented Jun 10, 2018 •

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.04%) to 83.89% when pulling 5d2a7eb on jbrockmendel:skip into 3261eea on statsmodels:master.

@codecov-io

codecov-io commented Jun 10, 2018 •

Copy link
Copy Markdown

Codecov Report

Merging #4506 into master will decrease coverage by <.01%.
The diff coverage is 73.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4506      +/-   ##
==========================================
- Coverage   81.38%   81.38%   -0.01%     
==========================================
  Files         581      581              
  Lines       90194    90187       -7     
  Branches    10077    10078       +1     
==========================================
- Hits        73406    73400       -6     
+ Misses      14498    14497       -1     
  Partials     2290     2290
Impacted Files Coverage Δ
statsmodels/genmod/tests/test_glm_weights.py 98.2% <100%> (ø) ⬆️
statsmodels/base/tests/test_generic_methods.py 96.43% <100%> (ø) ⬆️
statsmodels/discrete/tests/test_discrete.py 98.68% <100%> (+0.28%) ⬆️
statsmodels/regression/tests/test_robustcov.py 98.73% <63.63%> (-0.54%) ⬇️

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 3261eea...5d2a7eb. Read the comment docs.

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

ping

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

@josef-pkt ping

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

@josef-pkt Go Go Gadget Teamwork!

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

Well done sir! Thanks for handling a couple of the more pesky ones over the last few days. I think this is the last Truly Painful ones at the moment.

Are either of you by chance attending scipy in Austin?

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

Ping

fixup missing import

fixup missing import
@jbrockmendel

Copy link
Copy Markdown
Contributor Author

@josef-pkt lets make the tests suite more reliable, yah?

This was referenced Aug 22, 2018
@jbrockmendel

Copy link
Copy Markdown
Contributor Author

Closing in favor of #4983, #4980, #4978.

@jbrockmendel
jbrockmendel deleted the skip branch August 24, 2018 20:37
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.

5 participants