summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_histograms.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2018-06-27 10:34:54 -0600
committerGitHub <noreply@github.com>2018-06-27 10:34:54 -0600
commit72d2bc0b36478e06cc9d2f942f24308cabf1a22e (patch)
tree40d180bfbfe800d75e8c59aff86f9121e2b93ff0 /numpy/lib/tests/test_histograms.py
parent7dace1d1d3418fed96b0552f1dadb4fe82a23796 (diff)
parent431740e8a04855f8cdf2f720752e462a9cf69269 (diff)
downloadnumpy-72d2bc0b36478e06cc9d2f942f24308cabf1a22e.tar.gz
Merge pull request #11428 from eric-wieser/deprecate-normed-1.15.0
BUG: Fix incorrect deprecation logic for histogram(normed=...) (master)
Diffstat (limited to 'numpy/lib/tests/test_histograms.py')
-rw-r--r--numpy/lib/tests/test_histograms.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/lib/tests/test_histograms.py b/numpy/lib/tests/test_histograms.py
index 9bea2aca8..d22aa5a27 100644
--- a/numpy/lib/tests/test_histograms.py
+++ b/numpy/lib/tests/test_histograms.py
@@ -78,6 +78,10 @@ class TestHistogram(object):
assert_array_equal(a, .1)
assert_equal(np.sum(a * np.diff(b)), 1)
+ # Test that passing False works too
+ a, b = histogram(v, bins, density=False)
+ assert_array_equal(a, [1, 2, 3, 4])
+
# Variale bin widths are especially useful to deal with
# infinities.
v = np.arange(10)