diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2017-10-18 12:46:46 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-18 12:46:46 -0600 |
commit | 0984465a613c6ca6038d53b0845b4bc1a7368e8a (patch) | |
tree | 74966949aa3e00b40c76ac5a63919e96a385d145 /numpy/lib/tests/test_function_base.py | |
parent | aca47d713624bb09e73db014811f8c1be31dfdcd (diff) | |
parent | f9b99715be1844ce4c612dc66275f1bc662a0af8 (diff) | |
download | numpy-0984465a613c6ca6038d53b0845b4bc1a7368e8a.tar.gz |
Merge pull request #9065 from eric-wieser/deprecate-bincount
DEP: 0 should be passed to bincount, not None
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
-rw-r--r-- | numpy/lib/tests/test_function_base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py index 10440d97c..39edc18b4 100644 --- a/numpy/lib/tests/test_function_base.py +++ b/numpy/lib/tests/test_function_base.py @@ -2623,7 +2623,7 @@ class TestBincount(object): "'str' object cannot be interpreted", lambda: np.bincount(x, minlength="foobar")) assert_raises_regex(ValueError, - "must be non-negative", + "must not be negative", lambda: np.bincount(x, minlength=-1)) x = np.arange(5) @@ -2631,7 +2631,7 @@ class TestBincount(object): "'str' object cannot be interpreted", lambda: np.bincount(x, minlength="foobar")) assert_raises_regex(ValueError, - "minlength must be non-negative", + "must not be negative", lambda: np.bincount(x, minlength=-1)) @dec.skipif(not HAS_REFCOUNT, "python has no sys.getrefcount") |