[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:21:42 +01:00
parent 82a37dc14a
commit 5a642a802e
+1 -1
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: