Commit dd0a1d4c authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

ERP5TypeFunctionalTestCase: omit non-ASCII character from Firefox's stderr output.

parent 68eda1e5
......@@ -76,11 +76,15 @@ class Process(object):
PR_SET_PDEATHSIG(signal.SIGTERM)
def _exec(self, *args, **kw):
kw.setdefault('stderr', subprocess.PIPE)
self.process = subprocess.Popen(preexec_fn=self.preexec_fn, *args, **kw)
def quit(self):
if hasattr(self, 'process'):
stopProcess(self.process)
if self.process.stderr:
sys.stderr.write(
re.sub(r'[\x00-\x08\x0b-\x1f]+', '', self.process.stderr.read()))
del self.process
class Xvfb(Process):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment