diff Modules/_testcapimodule.c @ 46592:4e47548edd36 legacy-trunk

Rename the test_traceback_print() function to traceback_print() to prevent test_capi from automatically calling the function.
author Brett Cannon <bcannon@gmail.com>
date Mon, 28 Apr 2008 04:50:06 +0000
parents 07a4e1710262
children 4fe192d48960
line wrap: on
line diff
--- a/Modules/_testcapimodule.c	Mon Apr 28 03:27:53 2008 +0000
+++ b/Modules/_testcapimodule.c	Mon Apr 28 04:50:06 2008 +0000
@@ -736,13 +736,13 @@
 
 /* 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 @@
 #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 */
 };