diff options
author | cookedm <cookedm@localhost> | 2006-07-06 17:05:04 +0000 |
---|---|---|
committer | cookedm <cookedm@localhost> | 2006-07-06 17:05:04 +0000 |
commit | be3e20843fa8203cf64de8a944be95c02bde7d9b (patch) | |
tree | 63362a35421080a0ebbb6486a69ce86aa300a03a /numpy/lib/tests/test_twodim_base.py | |
parent | 216f071ab060a6f08c22666aea33f7095f079d1e (diff) | |
download | numpy-be3e20843fa8203cf64de8a944be95c02bde7d9b.tar.gz |
Patch from David Huard to future-proof histogram2d test
Diffstat (limited to 'numpy/lib/tests/test_twodim_base.py')
-rw-r--r-- | numpy/lib/tests/test_twodim_base.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/numpy/lib/tests/test_twodim_base.py b/numpy/lib/tests/test_twodim_base.py index d561869d0..5e24c5431 100644 --- a/numpy/lib/tests/test_twodim_base.py +++ b/numpy/lib/tests/test_twodim_base.py @@ -134,9 +134,8 @@ class test_rot90(NumpyTestCase): class test_histogram2d(NumpyTestCase): def check_simple(self): import numpy as np - np.random.seed(1) - x = np.rand(5) - y = np.rand(5) + x = array([ 0.41702200, 0.72032449, 0.00011437481, 0.302332573, 0.146755891]) + y = array([ 0.09233859, 0.18626021, 0.34556073, 0.39676747, 0.53881673]) xedges = np.linspace(0,1,10) yedges = np.linspace(0,1,10) H = np.histogram2d(x,y, (xedges, yedges))[0] |