mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-46528: Simplify the VM's stack manipulations (GH-30902)
This commit is contained in:
parent
d4a85f104b
commit
8548366864
12 changed files with 288 additions and 323 deletions
|
@ -119,8 +119,8 @@ class TestTranforms(BytecodeTestCase):
|
|||
def test_pack_unpack(self):
|
||||
for line, elem in (
|
||||
('a, = a,', 'LOAD_CONST',),
|
||||
('a, b = a, b', 'ROT_TWO',),
|
||||
('a, b, c = a, b, c', 'ROT_THREE',),
|
||||
('a, b = a, b', 'SWAP',),
|
||||
('a, b, c = a, b, c', 'SWAP',),
|
||||
):
|
||||
with self.subTest(line=line):
|
||||
code = compile(line,'','single')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue