ext: Run pre-commit run --files ext/testlib

Change-Id: Ic581132f6136dddb127e2a1c5a1ecc19876488c3
This commit is contained in:
Bobby R. Bruce
2023-09-04 23:51:14 -07:00
parent ff75e5b30e
commit 9e1afdecef
17 changed files with 952 additions and 709 deletions

View File

@@ -28,16 +28,18 @@
import testlib.helper as helper
class SkipException(Exception):
def __init__(self, fixture, testitem):
self.msg = 'Fixture "%s" raised SkipException for "%s".' % (
fixture.name, testitem.name
fixture.name,
testitem.name,
)
super(SkipException, self).__init__(self.msg)
class Fixture(object):
'''
"""
Base Class for a test Fixture.
Fixtures are items which possibly require setup and/or tearing down after
@@ -50,7 +52,8 @@ class Fixture(object):
.. note:: In order for Fixtures to be enumerated by the test system this
class' :code:`__new__` method must be called.
'''
"""
collector = helper.InstanceCollector()
def __new__(klass, *args, **kwargs):