From 5a642a802e0a7c76e46d7717b3d6f345fcec3236 Mon Sep 17 00:00:00 2001 From: Antony Lesuisse Date: Fri, 9 Jan 2015 01:20:45 +0100 Subject: [PATCH] [FIX] test phantomjs discard stderr To avoid phantomjs broken pipe messages on odoo stderr during testing. --- openerp/tests/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/tests/common.py b/openerp/tests/common.py index f058436ad33..c23c9974a83 100644 --- a/openerp/tests/common.py +++ b/openerp/tests/common.py @@ -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: