Commits

Philip Jenvey  committed 1a80367

enable PY_SSIZE_T_CLEAN tests, fix a missing INCREF in the test

  • Participants
  • Parent commits 29c2b39
  • Branches py3k

Comments (0)

Files changed (2)

File lib-python/3/test/test_capi.py

 skips = []
 if support.check_impl_detail(pypy=True):
     skips += [
-            'test_Z_code', # test_{Z,u}_code require PY_SSIZE_T_CLEAN support
-            'test_u_code',
             'test_broken_memoryview',
             'test_capsule',
             'test_lazy_hash_inheritance',

File lib_pypy/_testcapimodule.c

         return NULL;
 
     obj = PyUnicode_FromString("test");
+    Py_INCREF(obj);
     PyTuple_SET_ITEM(tuple, 0, obj);
     Py_INCREF(Py_None);
     PyTuple_SET_ITEM(tuple, 1, Py_None);