diff options
Diffstat (limited to 'numpy/lib/tests/test_regression.py')
-rw-r--r-- | numpy/lib/tests/test_regression.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/lib/tests/test_regression.py b/numpy/lib/tests/test_regression.py index 9821ba97e..16add3295 100644 --- a/numpy/lib/tests/test_regression.py +++ b/numpy/lib/tests/test_regression.py @@ -176,6 +176,9 @@ class TestRegression(TestCase): sys.stdout = sys.__stdout__ raise AssertionError("ticket #1243") + def test_bincount_empty(self): + """Ticket #1387: empty array as input for bincount.""" + assert_raises(ValueError, lambda : np.bincount(np.array([], dtype=np.intp))) if __name__ == "__main__": run_module_suite() |