[pypy-svn] r38414 - pypy/branch/pytrunkmerge/pypy/rlib/parsing/test

hpk at codespeak.net hpk at codespeak.net
Sat Feb 10 21:54:10 CET 2007


Author: hpk
Date: Sat Feb 10 21:54:08 2007
New Revision: 38414

Modified:
   pypy/branch/pytrunkmerge/pypy/rlib/parsing/test/test_ebnfparse.py
Log:
do view() and implicated pygame imports only
if "--view" is specified


Modified: pypy/branch/pytrunkmerge/pypy/rlib/parsing/test/test_ebnfparse.py
==============================================================================
--- pypy/branch/pytrunkmerge/pypy/rlib/parsing/test/test_ebnfparse.py	(original)
+++ pypy/branch/pytrunkmerge/pypy/rlib/parsing/test/test_ebnfparse.py	Sat Feb 10 21:54:08 2007
@@ -240,10 +240,12 @@
     t = ToAST().transform(t)
     t = parse('{"a": "5", "b": [1, null, 3, true, {"f": "g", "h": 6}]}')
     print "".join(list(t.dot()))
-    t.view()
+    if py.test.config.option.view: 
+        t.view()
     t = ToAST().transform(t)
     print "\n".join(list(t.dot()))
-    t.view()
+    if py.test.config.option.view: 
+        t.view()
 
 def test_starparse():
     regexs, rules, ToAST = parse_ebnf("""



More information about the Pypy-commit mailing list