summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_shape_base.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2007-01-09 01:44:40 +0000
committerTravis Oliphant <oliphant@enthought.com>2007-01-09 01:44:40 +0000
commit16a1d42ad141780a755603d48004e04cd3d33c1f (patch)
tree9fbd969ed6bd0e80286050c51239b19dbeb9f2a7 /numpy/lib/tests/test_shape_base.py
parent1bd2d49ef378fb869d015cef32c3e44a4c03a8f0 (diff)
downloadnumpy-16a1d42ad141780a755603d48004e04cd3d33c1f.tar.gz
Fix segfault in N.float64, ticket #412.
Diffstat (limited to 'numpy/lib/tests/test_shape_base.py')
-rw-r--r--numpy/lib/tests/test_shape_base.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/numpy/lib/tests/test_shape_base.py b/numpy/lib/tests/test_shape_base.py
index a96b4fc2c..6efd2cdf1 100644
--- a/numpy/lib/tests/test_shape_base.py
+++ b/numpy/lib/tests/test_shape_base.py
@@ -381,11 +381,12 @@ class test_tile(NumpyTestCase):
assert_equal(tile(a,(1,2)), [[0,1,2,0,1,2]])
assert_equal(tile(b, 2), [[1,2,1,2],[3,4,3,4]])
assert_equal(tile(b,(2,1)),[[1,2],[3,4],[1,2],[3,4]])
- assert_equal(tile(b,(2,2)),[[1,2,1,2],[3,4,3,4],[1,2,1,2],[3,4,3,4]])
+ assert_equal(tile(b,(2,2)),[[1,2,1,2],[3,4,3,4],
+ [1,2,1,2],[3,4,3,4]])
def check_kroncompare(self):
import numpy.random as nr
- reps=[(2,),(1,2),(2,1),(2,2),(2,3,2),(3,2)]
+ reps=[(2,),(1,2),(2,1),(2,2),(2,3,2),(3,2)]
shape=[(3,),(2,3),(3,4,3),(3,2,3),(4,3,2,4),(2,2)]
for s in shape:
b = nr.randint(0,10,size=s)
@@ -404,3 +405,4 @@ def compare_results(res,desired):
if __name__ == "__main__":
NumpyTest().run()
+