[pypy-commit] pypy fix-cpyext-releasebuffer: Skip test that fails untranslated (someone please kill ll2ctypes in a fire)

rlamy pypy.commits at gmail.com
Thu Mar 2 12:11:45 EST 2017


Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: fix-cpyext-releasebuffer
Changeset: r90493:e05f93a7addd
Date: 2017-03-02 18:10 +0100
http://bitbucket.org/pypy/pypy/changeset/e05f93a7addd/

Log:	Skip test that fails untranslated (someone please kill ll2ctypes in
	a fire)

diff --git a/pypy/module/cpyext/test/test_bufferobject.py b/pypy/module/cpyext/test/test_bufferobject.py
--- a/pypy/module/cpyext/test/test_bufferobject.py
+++ b/pypy/module/cpyext/test/test_bufferobject.py
@@ -63,8 +63,10 @@
         a = array.array('c', 'text')
         b = buffer(a)
         assert module.roundtrip(b) == 'text'
-        
+
     def test_releasebuffer(self):
+        if not self.runappdirect:
+            skip("Fails due to ll2ctypes nonsense")
         module = self.import_extension('foo', [
             ("create_test", "METH_NOARGS",
              """
@@ -104,10 +106,10 @@
                     return 0;
                 }
 
-                void releasebuffer(PyObject *obj, Py_buffer *view) { 
+                void releasebuffer(PyObject *obj, Py_buffer *view) {
                     cnt --;
                 }
-            """, more_init="""            
+            """, more_init="""
                 type = (PyHeapTypeObject *) PyType_Type.tp_alloc(&PyType_Type, 0);
 
                 type->ht_type.tp_name = "Test";


More information about the pypy-commit mailing list