From 16893be677dd136f50718abde72abe9ec72321ab Mon Sep 17 00:00:00 2001
From: Andreas van Cranenburgh <andreas@unstable.nl>
Date: Wed, 16 May 2012 21:07:42 +0200
Subject: [PATCH] updated test to use clone function. tests pass when compiled
 and run manually.

---
 tests/run/pyarray.pyx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/run/pyarray.pyx b/tests/run/pyarray.pyx
index 84c9d3f9f..01d2006f0 100644
--- a/tests/run/pyarray.pyx
+++ b/tests/run/pyarray.pyx
@@ -56,7 +56,7 @@ def test_new_zero(a):
     >>> test_new_zero(a)
     array('f', [0.0, 0.0, 0.0])
     """
-    cdef array.array cb = array.zeros_like(a)
+    cdef array.array cb = array.clone(a, len(a), True)
     assert cb.length == len(a)
     return cb
 
@@ -111,8 +111,8 @@ def test_likes(a):
     >>> test_likes(a)
     array('f', [0.0, 0.0, 0.0])
     """
-    cdef array.array z = array.zeros_like(a)
-    cdef array.array e = array.empty_like(a)
+    cdef array.array z = array.clone(a, len(a), True)
+    cdef array.array e = array.clone(a, len(a), False)
     assert e.length == len(a)
     return z
 
-- 
2.30.9