Skip to content

Commit

Permalink
Fix test_memoryview again by excluding BEFORE_WITH
Browse files Browse the repository at this point in the history
Apparently the fix using SET_LOCALS_FROM_FRAME() isn't enough
(it fixes some but not all failures). Possibly the problem is due
to having *two* BEFORE_WITH uops in one trace?

Unclear what's wrong with that opcode.
  • Loading branch information
gvanrossum committed Jun 26, 2023
1 parent 00f8f2c commit 4bd7bb6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 83 deletions.
81 changes: 0 additions & 81 deletions Python/executor_cases.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions Python/opcode_metadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -1195,8 +1195,6 @@ const struct opcode_macro_expansion _PyOpcode_macro_expansion[256] = {
[MATCH_KEYS] = { .nuops = 1, .uops = { { MATCH_KEYS, 0, 0 } } },
[GET_ITER] = { .nuops = 1, .uops = { { GET_ITER, 0, 0 } } },
[GET_YIELD_FROM_ITER] = { .nuops = 1, .uops = { { GET_YIELD_FROM_ITER, 0, 0 } } },
[BEFORE_ASYNC_WITH] = { .nuops = 1, .uops = { { BEFORE_ASYNC_WITH, 0, 0 } } },
[BEFORE_WITH] = { .nuops = 1, .uops = { { BEFORE_WITH, 0, 0 } } },
[WITH_EXCEPT_START] = { .nuops = 1, .uops = { { WITH_EXCEPT_START, 0, 0 } } },
[PUSH_EXC_INFO] = { .nuops = 1, .uops = { { PUSH_EXC_INFO, 0, 0 } } },
[EXIT_INIT_CHECK] = { .nuops = 1, .uops = { { EXIT_INIT_CHECK, 0, 0 } } },
Expand Down
1 change: 1 addition & 0 deletions Tools/cases_generator/generate_cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ def emit_macros(cls, out: Formatter):
"exception_unwind",
"import_from",
"import_name",
"_PyObject_CallNoArgs", # Proxy for BEFORE_WITH
)


Expand Down

0 comments on commit 4bd7bb6

Please sign in to comment.