Skip to content

Commit

Permalink
Merge pull request numpy#6092 from ahaldane/raise_warnings_fix
Browse files Browse the repository at this point in the history
MAINT: fix raise_warnings in np.test in py3
  • Loading branch information
charris committed Aug 1, 2015
2 parents c03abd7 + ede1588 commit 3fc27e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpy/testing/nosetester.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def test(self, label='fast', verbose=1, extra_argv=None,

_warn_opts = dict(develop=(DeprecationWarning, RuntimeWarning),
release=())
if raise_warnings in _warn_opts.keys():
if isinstance(raise_warnings, basestring):
raise_warnings = _warn_opts[raise_warnings]

with warnings.catch_warnings():
Expand Down

0 comments on commit 3fc27e8

Please sign in to comment.