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

clean up tests for discrete distributions #3138

Merged
merged 5 commits into from
Dec 15, 2013
Merged

Conversation

ev-br
Copy link
Member

@ev-br ev-br commented Dec 8, 2013

Tighten up the test accuracies here and there.
Remove several non-running tests.
Completely remove sample tests for the moments, since

  1. random samples are tested in a chi_square test
  2. they are way too noisy and do not actually test much (assert_almost_equal(..., ... decimal=0))
    Overall test coverage does not decrease.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 86d1991 on ev-br:discr_tests into d84e489 on scipy:master.

distname + ' skew_kurt'
yield check_cdf_ppf, distfn, arg, supp, distname + ' cdf_ppf'

cond = distname == 'skellam'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't you want to keep running this test for skellam with the original test accuracy instead of marking it knownfail?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, done. We do this already for ncf anyway.

@rgommers
Copy link
Member

Looks good to me.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 0cdeba8 on ev-br:discr_tests into 881fadf on scipy:master.

rgommers added a commit that referenced this pull request Dec 15, 2013
clean up tests for discrete distributions
@rgommers rgommers merged commit 787e5fe into scipy:master Dec 15, 2013
@rgommers
Copy link
Member

Thanks Evgeni, merged.

@ev-br ev-br deleted the discr_tests branch December 16, 2013 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants