[Python-checkins] r81178 - in python/branches/py3k-jit: Modules/_testcapimodule.c Unittests/GetArgsTest.cc (original) (raw)

collin.winter python-checkins at python.org
Fri May 14 23:40:31 CEST 2010


Author: collin.winter Date: Fri May 14 23:40:31 2010 New Revision: 81178

Log: Revert r79815.

Modified: python/branches/py3k-jit/Modules/_testcapimodule.c python/branches/py3k-jit/Unittests/GetArgsTest.cc

Modified: python/branches/py3k-jit/Modules/_testcapimodule.c

--- python/branches/py3k-jit/Modules/_testcapimodule.c (original) +++ python/branches/py3k-jit/Modules/_testcapimodule.c Fri May 14 23:40:31 2010 @@ -807,58 +807,6 @@ } #endif -/* Test Z and Z# codes for PyArg_ParseTuple */ -static PyObject * -test_Z_code(PyObject *self) -{ - PyObject *tuple, *obj; - Py_UNICODE *value1, *value2; - Py_ssize_t len1, len2;

-}

static PyObject * test_widechar(PyObject *self) @@ -1646,7 +1594,6 @@ {"codec_incrementaldecoder", (PyCFunction)codec_incrementaldecoder, METH_VARARGS}, #endif

#ifdef WITH_THREAD {"_test_thread_state", test_thread_state, METH_VARARGS},

Modified: python/branches/py3k-jit/Unittests/GetArgsTest.cc

--- python/branches/py3k-jit/Unittests/GetArgsTest.cc (original) +++ python/branches/py3k-jit/Unittests/GetArgsTest.cc Fri May 14 23:40:31 2010 @@ -183,3 +183,42 @@

 Py_DECREF(tuple);

} + + +// Test the Z and Z# codes for PyArg_ParseTuple. +TEST_F(GetArgsTest, FormatCode_Z) +{



More information about the Python-checkins mailing list