summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_histograms.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2018-12-06 11:32:35 -0800
committerGitHub <noreply@github.com>2018-12-06 11:32:35 -0800
commit2970e41fcd33b20fecba5c089b24650836d24a7d (patch)
tree361e2f59b7dc7d63c70f41338c42d27dbb98b66c /numpy/lib/tests/test_histograms.py
parent45cef38cda80868355a920b5e94211dcf662ea07 (diff)
parentabf62624f7e2ea41029c0dbaeef9c2851429a07a (diff)
downloadnumpy-2970e41fcd33b20fecba5c089b24650836d24a7d.tar.gz
Merge pull request #12388 from mhvk/linspace-allow-array
ENH: allow arrays for start and stop in {lin,log,geom}space
Diffstat (limited to 'numpy/lib/tests/test_histograms.py')
-rw-r--r--numpy/lib/tests/test_histograms.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/lib/tests/test_histograms.py b/numpy/lib/tests/test_histograms.py
index 5d0212f25..c96b01d42 100644
--- a/numpy/lib/tests/test_histograms.py
+++ b/numpy/lib/tests/test_histograms.py
@@ -289,13 +289,13 @@ class TestHistogram(object):
def test_object_array_of_0d(self):
# gh-7864
assert_raises(ValueError,
- histogram, [np.array([0.4]) for i in range(10)] + [-np.inf])
+ histogram, [np.array(0.4) for i in range(10)] + [-np.inf])
assert_raises(ValueError,
- histogram, [np.array([0.4]) for i in range(10)] + [np.inf])
+ histogram, [np.array(0.4) for i in range(10)] + [np.inf])
# these should not crash
- np.histogram([np.array([0.5]) for i in range(10)] + [.500000000000001])
- np.histogram([np.array([0.5]) for i in range(10)] + [.5])
+ np.histogram([np.array(0.5) for i in range(10)] + [.500000000000001])
+ np.histogram([np.array(0.5) for i in range(10)] + [.5])
def test_some_nan_values(self):
# gh-7503