Author: mattip <matti.pi...@gmail.com>
Branch: ufuncapi
Changeset: r72419:3d89d854cf6d
Date: 2014-07-11 22:39 +1000
http://bitbucket.org/pypy/pypy/changeset/3d89d854cf6d/

Log:    wip - add python-level test

diff --git a/pypy/module/cpyext/test/test_ndarrayobject.py 
b/pypy/module/cpyext/test/test_ndarrayobject.py
--- a/pypy/module/cpyext/test/test_ndarrayobject.py
+++ b/pypy/module/cpyext/test/test_ndarrayobject.py
@@ -212,8 +212,14 @@
         res = api._PyArray_SimpleNewFromData(0, ptr_s, 15, ptr_a)
         assert res.get_scalar_value().real == 3.
         assert res.get_scalar_value().imag == 4.
+    
+    def test_Ufunc_FromFuncAndDataAndSignature(self. space, api):
+        ufunc = api._PyUFunc_FromFuncAndDataAndSignature(space, funcs, data,
+                        types, ntypes, nin, nout, identity, doc, check_return,
+                        signature)
 
-class AppTestCNumber(AppTestCpythonExtensionBase):
+
+class AppTestNDArray(AppTestCpythonExtensionBase):
     def test_ndarray_object_c(self):
         mod = self.import_extension('foo', [
                 ("test_simplenew", "METH_NOARGS",
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to