[Python-checkins] python/dist/src/Lib/test test_peepholer.py, 1.9, 1.10

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Mon Feb 7 20:32:52 CET 2005


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29047/Lib/test

Modified Files:
	test_peepholer.py 
Log Message:
Adopt Skip's idea to optimize lists of constants in the context
of a "in" or "not in" test.



Index: test_peepholer.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_peepholer.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- test_peepholer.py	6 Feb 2005 22:05:42 -0000	1.9
+++ test_peepholer.py	7 Feb 2005 19:32:38 -0000	1.10
@@ -135,7 +135,8 @@
 
     def test_set_conversion(self):
         for line in (
-            'x in (1,2,3)',
+                '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)',



More information about the Python-checkins mailing list