Skip to content

Commit 4d172c2

Browse files
committed
Fix test_embed
1 parent 560e957 commit 4d172c2

File tree

2 files changed

+14
-17
lines changed

2 files changed

+14
-17
lines changed

Objects/interpolationobject.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ static PyObject *
124124
_get_match_args(void)
125125
{
126126
PyObject *value = NULL, *expr = NULL, *conv = NULL, *format_spec = NULL;
127+
PyObject *tuple = NULL;
127128

128129
value = PyUnicode_FromString("value");
129130
if (!value) {
@@ -142,18 +143,14 @@ _get_match_args(void)
142143
goto error;
143144
}
144145

145-
PyObject *tuple = PyTuple_Pack(4, value, expr, conv, format_spec);
146-
if (!tuple) {
147-
goto error;
148-
}
149-
return tuple;
146+
tuple = PyTuple_Pack(4, value, expr, conv, format_spec);
150147

151148
error:
152149
Py_XDECREF(value);
153150
Py_XDECREF(expr);
154151
Py_XDECREF(conv);
155152
Py_XDECREF(format_spec);
156-
return NULL;
153+
return tuple;
157154

158155
}
159156

Programs/test_frozenmain.h

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

0 commit comments

Comments
 (0)