[pypy-svn] r10305 - pypy/dist/pypy/module/parser/test

pedronis at codespeak.net pedronis at codespeak.net
Mon Apr 4 19:59:15 CEST 2005

Author: pedronis
Date: Mon Apr  4 19:59:15 2005
New Revision: 10305

disabled some print statements, changed check for PyPy,

this test is not really run it seems because it's unittest?

Modified: pypy/dist/pypy/module/parser/test/test_simple.py
--- pypy/dist/pypy/module/parser/test/test_simple.py	(original)
+++ pypy/dist/pypy/module/parser/test/test_simple.py	Mon Apr  4 19:59:15 2005
@@ -3,16 +3,15 @@
 import unittest, inspect, compiler
 import sys
-# XXX - Is there a better way to detect that we are in PyPy?
-print sys.version
-if "pypy" in sys.version:
+#print sys.version
+if hasattr(sys, 'pypy_objspaceclass'):
     cpy_parser = None
     import parser
     import parser as cpy_parser
     del sys.modules['parser']
     import pypy.module.parser.pyparser as parser
-    print dir(parser)
+    #print dir(parser)
     #assert hasattr(parser, 'PyTokenizer'), "not using Basil's common parser"
     from pypy.objspace.std import StdObjSpace
     space = StdObjSpace()

More information about the Pypy-commit mailing list