Merge "fix tox python3 overrides"
This commit is contained in:
commit
322b749af3
@ -13,6 +13,7 @@ from marathon.models import MarathonHealthCheck
|
|||||||
from Queue import Empty
|
from Queue import Empty
|
||||||
from Queue import Queue
|
from Queue import Queue
|
||||||
from random import random
|
from random import random
|
||||||
|
import six
|
||||||
from threading import Thread
|
from threading import Thread
|
||||||
from time import sleep
|
from time import sleep
|
||||||
from urllib2 import urlopen
|
from urllib2 import urlopen
|
||||||
@ -198,7 +199,7 @@ class HealthCheckBencher(object):
|
|||||||
def start_test(self):
|
def start_test(self):
|
||||||
task_list = self.get_tasks()
|
task_list = self.get_tasks()
|
||||||
for action in self.action_list:
|
for action in self.action_list:
|
||||||
if isinstance(action, basestring):
|
if isinstance(action, six.text_type):
|
||||||
if action.startswith('sleep='):
|
if action.startswith('sleep='):
|
||||||
amount = int(action.split('=')[1])
|
amount = int(action.split('=')[1])
|
||||||
sleep(60*amount)
|
sleep(60*amount)
|
||||||
|
4
tox.ini
4
tox.ini
@ -5,7 +5,6 @@ skipsdist = True
|
|||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
basepython = python2.7
|
|
||||||
# --ignore-installed is added to workaround problem with pip 8.0 and argparse
|
# --ignore-installed is added to workaround problem with pip 8.0 and argparse
|
||||||
# https://github.com/pypa/pip/issues/3404 and
|
# https://github.com/pypa/pip/issues/3404 and
|
||||||
# https://github.com/pypa/pip/issues/3384
|
# https://github.com/pypa/pip/issues/3384
|
||||||
@ -21,12 +20,15 @@ commands =
|
|||||||
python setup.py test --slowest --testr-args='{posargs}'
|
python setup.py test --slowest --testr-args='{posargs}'
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
|
basepython = python3
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
|
basepython = python3
|
||||||
commands = flake8
|
commands = flake8
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
|
basepython = python3
|
||||||
commands =
|
commands =
|
||||||
python setup.py build_sphinx
|
python setup.py build_sphinx
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user