-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify numpy's global print settings only when running tests
`numpy.set_printoptions(legacy='1.13')` was added to `test_axographio.py` in commit ac7c96a to fix broken doctests when numpy >= 1.14 is installed (old style printing retained for backwards compatibility). This global setting was being activated every time axographio was imported, even if axographio's tests are not run. This created unexpected behavior in other packages that import axographio. This change delays modifying the global setting until axographio's tests are actually run.
- Loading branch information
Showing
2 changed files
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters