[FIX] tests HTTPCase if phantomjs is not installed

bzr revid: al@openerp.com-20140216162026-ymbzoi70txbr64yl
This commit is contained in:
Antony Lesuisse 2014-02-16 17:20:26 +01:00
parent d169f4ada6
commit 42db02f73c
1 changed files with 2 additions and 1 deletions

View File

@ -175,7 +175,8 @@ class HttpCase(TransactionCase):
try:
phantom = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
except OSError:
_logger.info("phantomjs not found, test %s skipped", jsfile)
_logger.info("phantomjs not found, test skipped")
return
try:
self.phantom_poll(phantom, timeout)
finally: