[Numpy-svn] r2759 - trunk/numpy/lib/tests
numpy-svn at scipy.org
numpy-svn at scipy.org
Thu Jul 6 13:05:06 EDT 2006
Author: cookedm
Date: 2006-07-06 12:05:04 -0500 (Thu, 06 Jul 2006)
New Revision: 2759
Modified:
trunk/numpy/lib/tests/test_twodim_base.py
Log:
Patch from David Huard to future-proof histogram2d test
Modified: trunk/numpy/lib/tests/test_twodim_base.py
===================================================================
--- trunk/numpy/lib/tests/test_twodim_base.py 2006-07-06 17:00:16 UTC (rev 2758)
+++ trunk/numpy/lib/tests/test_twodim_base.py 2006-07-06 17:05:04 UTC (rev 2759)
@@ -134,9 +134,8 @@
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]
More information about the Numpy-svn
mailing list