Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix
  • Loading branch information
vstinner committed Feb 9, 2022
commit 6cd88b55cad6b8eec41ee423c97f097f48aa98c8
4 changes: 2 additions & 2 deletions pythoncapi_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ PyThreadState_LeaveTracing(PyThreadState *tstate)
PYCAPI_COMPAT_STATIC_INLINE(PyObject*)
PyObject_CallNoArgs(PyObject *func)
{
return PyObject_CallFunctionObjArgs(func, PYCAPI_COMPAT_NULL);
return PyObject_CallFunctionObjArgs(func, NULL);
}
#endif

Expand All @@ -315,7 +315,7 @@ PyObject_CallNoArgs(PyObject *func)
PYCAPI_COMPAT_STATIC_INLINE(PyObject*)
PyObject_CallOneArg(PyObject *func, PyObject *arg)
{
return PyObject_CallFunctionObjArgs(func, arg, PYCAPI_COMPAT_NULL);
return PyObject_CallFunctionObjArgs(func, arg, NULL);
}
#endif

Expand Down
7 changes: 6 additions & 1 deletion tests/test_pythoncapi_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,12 @@ def _check_refleak(test_func, verbose):


def run_tests(module_name):
display_title("Test %s" % module_name)
title = "Test %s" % module_name
if "cppext" in title:
title += " (C++)"
else:
title += " (C)"
display_title(title)

testmod = import_tests(module_name)

Expand Down