[py-svn] r37012 - in py/dist/py: apigen/testing rest

cfbolz at codespeak.net cfbolz at codespeak.net
Fri Jan 19 17:10:57 CET 2007


Author: cfbolz
Date: Fri Jan 19 17:10:55 2007
New Revision: 37012

Modified:
   py/dist/py/apigen/testing/test_apigen_functional.py
   py/dist/py/rest/latex.py
Log:
more quoting


Modified: py/dist/py/apigen/testing/test_apigen_functional.py
==============================================================================
--- py/dist/py/apigen/testing/test_apigen_functional.py	(original)
+++ py/dist/py/apigen/testing/test_apigen_functional.py	Fri Jan 19 17:10:55 2007
@@ -13,7 +13,7 @@
     parentdir = py.magic.autopath().dirpath().dirpath()
     pkgdir = fs_root.join('pkg')
     output = py.process.cmdexec(
-        'APIGEN_TARGET=%s py.test --session=L --apigen=%s/apigen.py %s' % (
+        'APIGEN_TARGET="%s" py.test --session=L --apigen="%s/apigen.py" "%s"' % (
             tempdir, parentdir, pkgdir))
     assert output.lower().find('traceback') == -1
 

Modified: py/dist/py/rest/latex.py
==============================================================================
--- py/dist/py/rest/latex.py	(original)
+++ py/dist/py/rest/latex.py	Fri Jan 19 17:10:55 2007
@@ -131,7 +131,7 @@
     i = 0
     while i < 10: # there should never be as many as five reruns, but to be sure
         try:
-            latexoutput = py.process.cmdexec("pdflatex %s" % (tex, ))
+            latexoutput = py.process.cmdexec('pdflatex "%s"' % (tex, ))
         except ExecutionFailed, e:
             print "ERROR: pdflatex execution failed"
             print "pdflatex stdout:"



More information about the pytest-commit mailing list