summaryrefslogtreecommitdiffstats
path: root/Modules/_testcapimodule.c
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-04-28 04:50:06 (GMT)
committerBrett Cannon <bcannon@gmail.com>2008-04-28 04:50:06 (GMT)
commit8dc43032971710883b3ee156bd01509b85648596 (patch)
treeed062655a68e7c8daf79b602e0072c9d68ac9105 /Modules/_testcapimodule.c
parentb8bdbc04e702409e5aaaaff74c6e5cd93226af07 (diff)
downloadcpython-8dc43032971710883b3ee156bd01509b85648596.zip
cpython-8dc43032971710883b3ee156bd01509b85648596.tar.gz
cpython-8dc43032971710883b3ee156bd01509b85648596.tar.bz2
Rename the test_traceback_print() function to traceback_print() to prevent
test_capi from automatically calling the function.
Diffstat (limited to 'Modules/_testcapimodule.c')
-rw-r--r--Modules/_testcapimodule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
index 8b4dbce..4a00fb1 100644
--- a/Modules/_testcapimodule.c
+++ b/Modules/_testcapimodule.c
@@ -736,13 +736,13 @@ test_with_docstring(PyObject *self)
/* To test the format of tracebacks as printed out. */
static PyObject *
-test_traceback_print(PyObject *self, PyObject *args)
+traceback_print(PyObject *self, PyObject *args)
{
PyObject *file;
PyObject *traceback;
int result;
- if (!PyArg_ParseTuple(args, "OO:test_traceback_print",
+ if (!PyArg_ParseTuple(args, "OO:traceback_print",
&traceback, &file))
return NULL;
@@ -792,7 +792,7 @@ static PyMethodDef TestMethods[] = {
#ifdef WITH_THREAD
{"_test_thread_state", test_thread_state, METH_VARARGS},
#endif
- {"test_traceback_print", test_traceback_print, METH_VARARGS},
+ {"traceback_print", traceback_print, METH_VARARGS},
{NULL, NULL} /* sentinel */
};