Skip to content

Commit 76c989d

Browse files
committed
Fix C ext test template c_template_void
1 parent dae0482 commit 76c989d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

graalpython/com.oracle.graal.python.test/src/tests/cpyext/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ def file_not_empty(path):
201201
static PyObject* test_{capifunction}(PyObject* module, PyObject* args) {{
202202
PyObject* ___arg;
203203
{argumentdeclarations};
204+
#ifndef NOARGS
204205
if (!PyArg_ParseTuple(args, "O", &___arg)) {{
205206
return NULL;
206207
}}
@@ -214,6 +215,7 @@ def file_not_empty(path):
214215
else {{
215216
{singleargumentname} = ___arg;
216217
}}
218+
#endif
217219
#endif
218220
{callfunction}({argumentnames});
219221
return Py_BuildValue("{resultspec}", {resultval});

graalpython/com.oracle.graal.python.test/src/tests/cpyext/test_err.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ def compile_module(self, name):
393393
}
394394
""",
395395
resultspec="O",
396+
arguments=[],
396397
callfunction="wrap_PyErr_Fetch_tb_from_c",
397398
cmpfunc=compare_tracebacks,
398399
)

0 commit comments

Comments
 (0)