From 1e48f9d6bd0bc5712fe279b5b12c884941b5e999 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 7 Feb 2023 10:23:13 -0800 Subject: [PATCH] Fix test crash --- Python/bytecodes.c | 2 +- Python/generated_cases.c.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Python/bytecodes.c b/Python/bytecodes.c index 6376b3479d29b5..ec1c9b414ebba2 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -3078,7 +3078,7 @@ dummy_func( Py_DECREF(value); if (result == NULL) { Py_XDECREF(fmt_spec); - goto error; + ERROR_IF(true, error); } value = result; } diff --git a/Python/generated_cases.c.h b/Python/generated_cases.c.h index 8f23393ee3024c..1ff91cd74b1f85 100644 --- a/Python/generated_cases.c.h +++ b/Python/generated_cases.c.h @@ -3709,7 +3709,7 @@ Py_DECREF(value); if (result == NULL) { Py_XDECREF(fmt_spec); - goto error; + if (true) { STACK_SHRINK((((oparg & FVS_MASK) == FVS_HAVE_SPEC) ? 1 : 0)); goto pop_1_error; } } value = result; }