summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_function_base.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-04-14 21:48:28 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-04-14 21:48:28 +0000
commita52217361c8b5e6941766c6ab0e2752aa40f8652 (patch)
tree81250e9a2364ffc927fbece4d679f1bc2a5249be /numpy/lib/tests/test_function_base.py
parent5567185f1bbe1f568c2bcbaeb34ea8df84e83610 (diff)
downloadnumpy-a52217361c8b5e6941766c6ab0e2752aa40f8652.tar.gz
Fix object-loop reference counting in BUFFERED UFUNC.
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
-rw-r--r--numpy/lib/tests/test_function_base.py15
1 files changed, 6 insertions, 9 deletions
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py
index cf9a35274..3a603923a 100644
--- a/numpy/lib/tests/test_function_base.py
+++ b/numpy/lib/tests/test_function_base.py
@@ -262,8 +262,12 @@ class test_vectorize(ScipyTestCase):
f = vectorize(addsubtract)
r = f([0,3,6,9],5)
assert_array_equal(r,[5,8,1,4])
-
-
+ def check_large(self):
+ x = linspace(-3,2,10000)
+ f = vectorize(lambda x: x)
+ y = f(x)
+ assert_array_equal(y, x)
+
class test_unwrap(ScipyTestCase):
def check_simple(self):
@@ -327,13 +331,6 @@ class test_histogram(ScipyTestCase):
(a,b)=histogram(linspace(0,10,100))
assert(all(a==10))
-class test_vectorize( ScipyTestCase ):
- def check_vectorize( self ):
- x = linspace(-3,2,10000)
- f = vectorize(lambda x: x)
- y = f(x)
- assert_array_equal(y, x)
-
def compare_results(res,desired):