Skip to content

DOC: fix doctests for numpy 1.14 array printing. #591

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

Merged
merged 1 commit into from
Jan 12, 2018

Conversation

matthew-brett
Copy link
Member

Numpy 1.14 has a different output format for the array. There's a bug
in numpy.set_printoptions(legacy='1.13') so we can't use that to set
the print format back to its previous output:

numpy/numpy#10383

Depend on numpy 1.14 for the doctests.

Numpy 1.14 has a different output format for the array.  There's a bug
in `numpy.set_printoptions(legacy='1.13')` so we can't use that to set
the print format back to its previous output:

numpy/numpy#10383

Depend on numpy 1.14 for the doctests.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 96.359% when pulling 11818ba on matthew-brett:fix-doctests into f824222 on nipy:master.

@codecov-io
Copy link

codecov-io commented Jan 12, 2018

Codecov Report

Merging #591 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #591   +/-   ##
=======================================
  Coverage   94.46%   94.46%           
=======================================
  Files         177      177           
  Lines       24936    24936           
  Branches     2659     2659           
=======================================
  Hits        23556    23556           
  Misses        908      908           
  Partials      472      472

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 f824222...11818ba. Read the comment docs.

@effigies
Copy link
Member

Does it make sense to go ahead and update all the docstring tests, and get rid of the setup test function?

Actually, it's not clear why those doctests aren't breaking, if legacy printing is buggy.

@matthew-brett
Copy link
Member Author

I guess we didn't hit the particular case that exposes the bug.

I'm easy either way for converting the doctests. Not converting means we can run the doctests on various versions, which does keep our test coverage up for versions of numpy < 1.14. Maybe we can convert if we hit this bug in the doctests at some point.

@effigies
Copy link
Member

Sounds good. +1 for merge.

@matthew-brett
Copy link
Member Author

Thanks - I'll go ahead, so we've got all green on master again.

@matthew-brett matthew-brett merged commit ee4ce2a into nipy:master Jan 12, 2018
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.

4 participants