Skip to content
Snippets Groups Projects
Commit 0b079dc8 authored by Philippe Pepiot's avatar Philippe Pepiot
Browse files

flake8

So benchmarks/* is flake8 compliant
parent 707a1242
No related branches found
No related tags found
No related merge requests found
......@@ -15,8 +15,11 @@
import sys
import tempfile
from .utils import (BaseNChangesetsTestSuite, BaseTestSuite,
median, REPOS_DIR)
if sys.version_info[0] == 2:
import Queue as queue
else:
import queue
......@@ -18,11 +21,8 @@
if sys.version_info[0] == 2:
import Queue as queue
else:
import queue
from .utils import (BaseNChangesetsTestSuite, BaseTestSuite,
median, REPOS_DIR)
class TestSuite(BaseTestSuite):
......@@ -160,9 +160,8 @@
'--config', 'web.push_ssl=False',
'--config', 'web.allow_push=*',
'--webdir-conf', config]
self.proc = subprocess.Popen(hgweb_cmd,
env=environ,
stdout=subprocess.PIPE)
self.proc = subprocess.Popen(hgweb_cmd, env=environ,
stdout=subprocess.PIPE)
# we have to read output in a thread to avoid deadlocks
self.thread = threading.Thread(
target=self._enqueue, args=(self.queue, self.proc.stdout))
......
......@@ -96,7 +96,7 @@
return decorator
PERF_RE = re.compile(r'! wall (\d+.\d+) comb (\d+.\d+) user (\d+.\d+) sys (\d+.\d+) \(best of (\d+)\)')
PERF_RE = re.compile(r'! wall (\d+.\d+) comb (\d+.\d+) user (\d+.\d+) sys (\d+.\d+) \(best of (\d+)\)') # noqa: E501
###
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment