Author: mattip <[email protected]>
Branch: cpyext-ext
Changeset: r82662:2279834c7e56
Date: 2016-03-02 14:31 -0500
http://bitbucket.org/pypy/pypy/changeset/2279834c7e56/

Log:    unskip and start to fix test for tp_new (issue #1703)

diff --git a/pypy/module/cpyext/test/foo3.c b/pypy/module/cpyext/test/foo3.c
--- a/pypy/module/cpyext/test/foo3.c
+++ b/pypy/module/cpyext/test/foo3.c
@@ -59,11 +59,14 @@
 
 static PyMethodDef sbkMethods[] = {{NULL, NULL, 0, NULL}};
 
-#ifdef _WIN32
-       __declspec(dllexport) void              // PyModINIT_FUNC is broken on 
PyPy/Windows
+/* Initialize this module. */
+#ifdef __GNUC__
+extern __attribute__((visibility("default")))
 #else
-       PyMODINIT_FUNC
+extern __declspec(dllexport)
 #endif
+
+PyMODINIT_FUNC
 initfoo3(void)
 {
        PyObject* mod = Py_InitModule("Foo3", sbkMethods);
diff --git a/pypy/module/cpyext/test/test_typeobject.py 
b/pypy/module/cpyext/test/test_typeobject.py
--- a/pypy/module/cpyext/test/test_typeobject.py
+++ b/pypy/module/cpyext/test/test_typeobject.py
@@ -865,7 +865,6 @@
         assert (d + a) == 5
 
     def test_tp_new_in_subclass_of_type(self):
-        skip("BROKEN")
         module = self.import_module(name='foo3')
         print('calling module.Type()...')
         module.Type("X", (object,), {})
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to