Add simple_const tests for Python 3.8-3.11, and handle Python 3.11 RESUME opcode
This commit is contained in:
@@ -2516,6 +2516,9 @@ PycRef<ASTNode> BuildFromCode(PycRef<PycCode> code, PycModule* mod)
|
||||
that during disassembly/decompilation, we can just treat these
|
||||
as no-ops. */
|
||||
break;
|
||||
case Pyc::RESUME_A:
|
||||
/* Treated as no-op for decompyle purposes */
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, "Unsupported opcode: %s\n", Pyc::OpcodeName(opcode & 0xFF));
|
||||
cleanBuild = false;
|
||||
|
@@ -30,11 +30,11 @@ PYVERS = {
|
||||
'3.4': '3.4.10',
|
||||
'3.5': '3.5.10',
|
||||
'3.6': '3.6.15',
|
||||
'3.7': '3.7.15',
|
||||
'3.8': '3.8.15',
|
||||
'3.9': '3.9.15',
|
||||
'3.10': '3.10.8',
|
||||
'3.11': '3.11.0',
|
||||
'3.7': '3.7.16',
|
||||
'3.8': '3.8.16',
|
||||
'3.9': '3.9.16',
|
||||
'3.10': '3.10.9',
|
||||
'3.11': '3.11.1',
|
||||
}
|
||||
|
||||
OLD_PYTHONS = ('1.0', '1.1', '1.2', '1.3', '1.4', '1.5')
|
||||
|
BIN
tests/compiled/simple_const.3.10.pyc
Normal file
BIN
tests/compiled/simple_const.3.10.pyc
Normal file
Binary file not shown.
BIN
tests/compiled/simple_const.3.11.pyc
Normal file
BIN
tests/compiled/simple_const.3.11.pyc
Normal file
Binary file not shown.
BIN
tests/compiled/simple_const.3.8.pyc
Normal file
BIN
tests/compiled/simple_const.3.8.pyc
Normal file
Binary file not shown.
BIN
tests/compiled/simple_const.3.9.pyc
Normal file
BIN
tests/compiled/simple_const.3.9.pyc
Normal file
Binary file not shown.
Reference in New Issue
Block a user