[FIX] test phantomjs discard stderr

To avoid phantomjs broken pipe messages on odoo stderr during testing.
This commit is contained in:
Antony Lesuisse 2015-01-09 01:20:45 +01:00
parent 82a37dc14a
commit 5a642a802e
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ class HttpCase(TransactionCase):
_logger.info('phantomjs unlink localstorage %s', i)
os.unlink(i)
try:
phantom = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
phantom = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=None)
except OSError:
raise unittest2.SkipTest("PhantomJS not found")
try: