mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
bpo-46528: Simplify BUILD_TUPLE/UNPACK_SEQUENCE folding (GH-31039)
This commit is contained in:
parent
bebaa95fd0
commit
a0e55a571c
2 changed files with 8 additions and 15 deletions
|
|
@ -126,7 +126,7 @@ class TestTranforms(BytecodeTestCase):
|
|||
code = compile(line,'','single')
|
||||
self.assertInBytecode(code, elem)
|
||||
self.assertNotInBytecode(code, 'BUILD_TUPLE')
|
||||
self.assertNotInBytecode(code, 'UNPACK_TUPLE')
|
||||
self.assertNotInBytecode(code, 'UNPACK_SEQUENCE')
|
||||
self.check_lnotab(code)
|
||||
|
||||
def test_folding_of_tuples_of_constants(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue