mirror of
https://github.com/python/cpython.git
synced 2026-01-06 23:42:34 +00:00
Remove set conversion optimization test (backed out of Python/compile.c in rev.
2.344).
This commit is contained in:
parent
ba613c3410
commit
64d904b715
1 changed files with 0 additions and 11 deletions
|
|
@ -133,17 +133,6 @@ def test_folding_of_binops_on_constants(self):
|
|||
asm = dis_single('a="x"*1000')
|
||||
self.assert_('(1000)' in asm)
|
||||
|
||||
def test_set_conversion(self):
|
||||
for line in (
|
||||
'x in [1,2,3]',
|
||||
'x in (1,2,3)',
|
||||
'x not in (1,2,3)',
|
||||
'not x in (1,2,3)',
|
||||
'not x not in (1,2,3)',
|
||||
):
|
||||
asm = dis_single(line)
|
||||
self.assert_('frozenset' in asm)
|
||||
|
||||
def test_elim_extra_return(self):
|
||||
# RETURN LOAD_CONST None RETURN --> RETURN
|
||||
def f(x):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue