Get rid of six

six is no longer needed because Python 2 is no longer supported.

Change-Id: Ic9f19de28279aff63ad58a8c2aa983c87c9fe33a
This commit is contained in:
Takashi Kajinami 2024-03-28 15:37:30 +09:00
parent 38e813e09b
commit 9bcfe929f5
2 changed files with 2 additions and 5 deletions

View File

@ -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__)

View File

@ -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__