Get rid of six
six is no longer needed because Python 2 is no longer supported. Change-Id: Ic9f19de28279aff63ad58a8c2aa983c87c9fe33a
This commit is contained in:
parent
38e813e09b
commit
9bcfe929f5
|
@ -19,7 +19,6 @@ import time
|
|||
|
||||
from oslo_log import log as logging
|
||||
from oslo_utils import importutils
|
||||
import six
|
||||
from tempest import clients
|
||||
from tempest.common import credentials_factory as credentials
|
||||
from tempest import config
|
||||
|
@ -181,7 +180,7 @@ def stress_openstack(tests, duration, max_runs=None, stop_on_error=False):
|
|||
test_run = test_obj(manager, max_runs, stop_on_error)
|
||||
|
||||
kwargs = test.get('kwargs', {})
|
||||
test_run.setUp(**dict(six.iteritems(kwargs)))
|
||||
test_run.setUp(**kwargs)
|
||||
|
||||
LOG.debug("calling Target Object %s" %
|
||||
test_run.__class__.__name__)
|
||||
|
|
|
@ -17,11 +17,9 @@ import signal
|
|||
import sys
|
||||
|
||||
from oslo_log import log as logging
|
||||
import six
|
||||
|
||||
|
||||
@six.add_metaclass(abc.ABCMeta)
|
||||
class StressAction(object):
|
||||
class StressAction(object, metaclass=abc.ABCMeta):
|
||||
|
||||
def __init__(self, manager, max_runs=None, stop_on_error=False):
|
||||
full_cname = self.__module__ + "." + self.__class__.__name__
|
||||
|
|
Loading…
Reference in New Issue