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

BUG: Error message contained wrong values #5815

Merged
merged 1 commit into from
Feb 7, 2016

Conversation

TomAugspurger
Copy link
Contributor

Closes #5814

I included a test, but I'm not sure how useful it is. Can easily remove it if need be.

EDIT: You've dropped support for 2.6 right? I think my generator expression would fail on that.

@codecov-io
Copy link

@@            master   #5815   diff @@
======================================
  Files          235     235       
  Stmts        43347   43348     +1
  Branches      8165    8165       
  Methods          0       0       
======================================
+ Hit          33722   33723     +1
  Partial       2594    2594       
  Missed        7031    7031       

Review entire Coverage Diff as of 94dfd5d

Powered by Codecov. Updated on successful CI builds.

@larsmans
Copy link
Contributor

larsmans commented Feb 7, 2016

2.6 is still supported according to INSTALL.rst.txt, but is no longer tested on Travis.

policies = ['propagate', 'raise', 'omit']
if nan_policy not in policies:
raise ValueError("nan_policy must be one of {%s}" %
', '.join("'%s'" % s for s in policies))
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this what you're worried about? This should work fine on Py2.6.

@rgommers
Copy link
Member

rgommers commented Feb 7, 2016

2.6 is still supported according to INSTALL.rst.txt, but is no longer tested on Travis.

That's a mistake, the install docs should have been updated in gh-5756. I'll send a PR.

@larsmans
Copy link
Contributor

larsmans commented Feb 7, 2016

Merging. The test is greatly appreciated, as this is obviously something that went wrong in the past. Thanks @TomAugspurger!

larsmans added a commit that referenced this pull request Feb 7, 2016
BUG: stats: Error message contained wrong values
@larsmans larsmans merged commit 4946afa into scipy:master Feb 7, 2016
@rgommers rgommers added scipy.stats maintenance Items related to regular maintenance tasks labels Feb 7, 2016
@rgommers rgommers added this to the 0.18.0 milestone Feb 7, 2016
@TomAugspurger TomAugspurger deleted the nan-error-message branch June 19, 2019 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Items related to regular maintenance tasks scipy.stats
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants