diff options
author | Travis Oliphant <oliphant@enthought.com> | 2007-01-09 01:44:40 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2007-01-09 01:44:40 +0000 |
commit | 16a1d42ad141780a755603d48004e04cd3d33c1f (patch) | |
tree | 9fbd969ed6bd0e80286050c51239b19dbeb9f2a7 /numpy/lib/tests/test_shape_base.py | |
parent | 1bd2d49ef378fb869d015cef32c3e44a4c03a8f0 (diff) | |
download | numpy-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.py | 6 |
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() + |