diff --git a/tests/integration/quteprocess.py b/tests/integration/quteprocess.py index d919d9245..63f89713e 100644 --- a/tests/integration/quteprocess.py +++ b/tests/integration/quteprocess.py @@ -169,6 +169,10 @@ class QuteProc(testprocess.Process): self.ready.emit() def _parse_line(self, line): + # http://stackoverflow.com/a/14693789/2085149 + ansi_escape = re.compile(r'\x1b[^m]*m') + line = ansi_escape.sub('', line) + try: log_line = LogLine(line) except testprocess.InvalidLine: @@ -237,7 +241,8 @@ class QuteProc(testprocess.Process): return executable, args def _default_args(self): - return ['--debug', '--no-err-windows', '--temp-basedir', 'about:blank'] + return ['--debug', '--no-err-windows', '--temp-basedir', + '--force-color', 'about:blank'] def path_to_url(self, path, *, port=None, https=False): """Get a URL based on a filename for the localhost webserver.