[pypy-svn] r16792 - pypy/release/0.7.x/pypy/interpreter/pyparser/test

ludal at codespeak.net ludal at codespeak.net
Sat Aug 27 17:45:35 CEST 2005


Author: ludal
Date: Sat Aug 27 17:45:34 2005
New Revision: 16792

Modified:
   pypy/release/0.7.x/pypy/interpreter/pyparser/test/test_astcompiler.py
Log:
 disable compilation (not parsing) of genexp since we can't compare code objects because
 c-python optimizes the bytecode and we do not. The bytecode produced is still tested by
 some other tests (see for example lib-python/2.4.1/test/test_genexps.py


Modified: pypy/release/0.7.x/pypy/interpreter/pyparser/test/test_astcompiler.py
==============================================================================
--- pypy/release/0.7.x/pypy/interpreter/pyparser/test/test_astcompiler.py	(original)
+++ pypy/release/0.7.x/pypy/interpreter/pyparser/test/test_astcompiler.py	Sat Aug 27 17:45:34 2005
@@ -33,7 +33,7 @@
 import sys
 if sys.version_info[0]==2 and sys.version_info[1]>=4:
     # genexps and new style import don't work on python2.3
-    TESTS.append(genexps)
+    # TESTS.append(genexps) XXX: 2.4 optimizes bytecode so our comparison doesn't work
     TESTS.append(imports_newstyle)
     # assertions give different bytecode with 2.4 (optimize if __debug__)
     TESTS.append(asserts)



More information about the Pypy-commit mailing list