Commit 127216f8 authored by Guido van Rossum's avatar Guido van Rossum

Add a test for a bad format character.

parent 73eeda19
......@@ -208,10 +208,26 @@ xx_bug(self, args)
return Py_None;
}
/* Test bad format character */
static PyObject *
xx_roj(self, args)
PyObject *self; /* Not used */
PyObject *args;
{
PyObject *a;
long b;
if (!PyArg_ParseTuple(args, "O#", &a, &b))
return NULL;
Py_INCREF(Py_None);
return Py_None;
}
/* List of functions defined in the module */
static PyMethodDef xx_methods[] = {
{"roj", xx_roj, 1},
{"foo", xx_foo, 1},
{"new", xx_new, 1},
{"bug", xx_bug, 1},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment