summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_function_base.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-08-04 18:47:25 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-08-04 18:47:25 +0000
commita9046559ee562323b483ffbb80eb4b4d0cb11d36 (patch)
treed6875105a0c2999d512f853886ae975030016bc0 /numpy/lib/tests/test_function_base.py
parent7ffd787c0702925a985fedfc0c988059a77c2b61 (diff)
downloadnumpy-a9046559ee562323b483ffbb80eb4b4d0cb11d36.tar.gz
Convert so that axis arguments are consistent for methods and functions. Place functions for which this changes the Numeric default into oldnumeric.
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
-rw-r--r--numpy/lib/tests/test_function_base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py
index 4642725fc..9a1825e39 100644
--- a/numpy/lib/tests/test_function_base.py
+++ b/numpy/lib/tests/test_function_base.py
@@ -20,7 +20,7 @@ class test_any(NumpyTestCase):
def check_nd(self):
y1 = [[0,0,0],[0,1,0],[1,1,0]]
assert(any(y1))
- assert_array_equal(sometrue(y1),[1,1,0])
+ assert_array_equal(sometrue(y1,axis=0),[1,1,0])
assert_array_equal(sometrue(y1,axis=1),[0,1,1])
class test_all(NumpyTestCase):
@@ -36,7 +36,7 @@ class test_all(NumpyTestCase):
def check_nd(self):
y1 = [[0,0,1],[0,1,1],[1,1,1]]
assert(not all(y1))
- assert_array_equal(alltrue(y1),[0,0,1])
+ assert_array_equal(alltrue(y1,axis=0),[0,0,1])
assert_array_equal(alltrue(y1,axis=1),[0,0,1])
class test_average(NumpyTestCase):