Skip to content

Commit a54469c

Browse files
Change test name.
1 parent 74d0161 commit a54469c

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

Lib/test/test_clinic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3032,9 +3032,9 @@ def test_bool_converter(self):
30323032
self.assertEqual(ac_tester.bool_converter('', [], 5), (False, False, True))
30333033
self.assertEqual(ac_tester.bool_converter(('not empty',), {1: 2}, 0), (True, True, False))
30343034

3035-
def test_bool_converter_default(self):
3036-
self.assertEqual(ac_tester.bool_converter_default(), (1, 0, -2, -3))
3037-
self.assertEqual(ac_tester.bool_converter_default(False, True, False, True),
3035+
def test_bool_converter_c_default(self):
3036+
self.assertEqual(ac_tester.bool_converter_c_default(), (1, 0, -2, -3))
3037+
self.assertEqual(ac_tester.bool_converter_c_default(False, True, False, True),
30383038
(0, 1, 0, 1))
30393039

30403040
def test_char_converter(self):

Modules/_testclinic.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ bool_converter_impl(PyObject *module, int a, int b, int c)
225225

226226

227227
/*[clinic input]
228-
bool_converter_default
228+
bool_converter_c_default
229229
230230
a: bool = True
231231
b: bool = False
@@ -236,8 +236,8 @@ bool_converter_default
236236
[clinic start generated code]*/
237237

238238
static PyObject *
239-
bool_converter_default_impl(PyObject *module, int a, int b, int c, int d)
240-
/*[clinic end generated code: output=97757cf2e24f6940 input=bb40f29518f69e70]*/
239+
bool_converter_c_default_impl(PyObject *module, int a, int b, int c, int d)
240+
/*[clinic end generated code: output=cf204382e1e4c30c input=185786302ab84081]*/
241241
{
242242
return Py_BuildValue("iiii", a, b, c, d);
243243
}
@@ -2315,7 +2315,7 @@ static PyMethodDef tester_methods[] = {
23152315
BYTE_ARRAY_OBJECT_CONVERTER_METHODDEF
23162316
UNICODE_CONVERTER_METHODDEF
23172317
BOOL_CONVERTER_METHODDEF
2318-
BOOL_CONVERTER_DEFAULT_METHODDEF
2318+
BOOL_CONVERTER_C_DEFAULT_METHODDEF
23192319
CHAR_CONVERTER_METHODDEF
23202320
UNSIGNED_CHAR_CONVERTER_METHODDEF
23212321
SHORT_CONVERTER_METHODDEF

Modules/clinic/_testclinic.c.h

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)