def test_folding_of_lists_of_constants(self):
    for (line, elem) in (('a in [1,2,3]', (1, 2, 3)), ('a not in ["a","b","c"]', ('a', 'b', 'c')), ('a in [None, 1, None]', (None, 1, None)), ('a not in [(1, 2), 3, 4]', ((1, 2), 3, 4))):
        code = compile(line, '', 'single')
        self.assertInBytecode(code, 'LOAD_CONST', elem)
        self.assertNotInBytecode(code, 'BUILD_LIST')
        self.check_lnotab(code)
def test_folding_of_lists_of_constants(self):
    for (line, elem) in (('a in [1,2,3]', (1, 2, 3)), ('a not in ["a","b","c"]', ('a', 'b', 'c')), ('a in [None, 1, None]', (None, 1, None)), ('a not in [(1, 2), 3, 4]', ((1, 2), 3, 4))):
        code = compile(line, , 'single')
        self.assertInBytecode(code, 'LOAD_CONST', elem)
        self.assertNotInBytecode(code, 'BUILD_LIST')
        self.check_lnotab(code)