]> granicus.if.org Git - python/commitdiff
Remove set conversion optimization test (backed out of Python/compile.c in rev.
authorBrett Cannon <bcannon@gmail.com>
Thu, 10 Feb 2005 20:40:29 +0000 (20:40 +0000)
committerBrett Cannon <bcannon@gmail.com>
Thu, 10 Feb 2005 20:40:29 +0000 (20:40 +0000)
2.344).

Lib/test/test_peepholer.py

index 0e723ebec6cd762f5cda57e46a674b6414930e8d..34bd99f2a402cca3c52a63b8796240f6a495d216 100644 (file)
@@ -133,17 +133,6 @@ class TestTranforms(unittest.TestCase):
         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):