Skip to content

Commit 44ad369

Browse files
authored
Merge pull request #2263 from nicoddemus/revert-pluggy
Revert subclassing explicitly from object introduced by accident in #2260
2 parents abd6ad3 + f1900bb commit 44ad369

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

_pytest/vendored_packages/pluggy.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
_py3 = sys.version_info > (3, 0)
7676

7777

78-
class HookspecMarker(object):
78+
class HookspecMarker:
7979
""" Decorator helper class for marking functions as hook specifications.
8080
8181
You can instantiate it with a project_name to get a decorator.
@@ -113,7 +113,7 @@ def setattr_hookspec_opts(func):
113113
return setattr_hookspec_opts
114114

115115

116-
class HookimplMarker(object):
116+
class HookimplMarker:
117117
""" Decorator helper class for marking functions as hook implementations.
118118
119119
You can instantiate with a project_name to get a decorator.
@@ -167,7 +167,7 @@ def normalize_hookimpl_opts(opts):
167167
opts.setdefault("optionalhook", False)
168168

169169

170-
class _TagTracer(object):
170+
class _TagTracer:
171171
def __init__(self):
172172
self._tag2proc = {}
173173
self.writer = None
@@ -214,7 +214,7 @@ def setprocessor(self, tags, processor):
214214
self._tag2proc[tags] = processor
215215

216216

217-
class _TagTracerSub(object):
217+
class _TagTracerSub:
218218
def __init__(self, root, tags):
219219
self.root = root
220220
self.tags = tags
@@ -254,7 +254,7 @@ def _wrapped_call(wrap_controller, func):
254254
return call_outcome.get_result()
255255

256256

257-
class _CallOutcome(object):
257+
class _CallOutcome:
258258
""" Outcome of a function call, either an exception or a proper result.
259259
Calling the ``get_result`` method will return the result or reraise
260260
the exception raised when the function was called. """
@@ -286,7 +286,7 @@ def _reraise(cls, val, tb):
286286
""")
287287

288288

289-
class _TracedHookExecution(object):
289+
class _TracedHookExecution:
290290
def __init__(self, pluginmanager, before, after):
291291
self.pluginmanager = pluginmanager
292292
self.before = before
@@ -580,7 +580,7 @@ def subset_hook_caller(self, name, remove_plugins):
580580
return orig
581581

582582

583-
class _MultiCall(object):
583+
class _MultiCall:
584584
""" execute a call into multiple python functions/methods. """
585585

586586
# XXX note that the __multicall__ argument is supported only
@@ -673,7 +673,7 @@ def varnames(func, startindex=None):
673673
return x
674674

675675

676-
class _HookRelay(object):
676+
class _HookRelay:
677677
""" hook holder object for performing 1:N hook calls where N is the number
678678
of registered plugins.
679679
@@ -770,7 +770,7 @@ def _maybe_apply_history(self, method):
770770
proc(res[0])
771771

772772

773-
class HookImpl(object):
773+
class HookImpl:
774774
def __init__(self, plugin, plugin_name, function, hook_impl_opts):
775775
self.function = function
776776
self.argnames = varnames(self.function)

0 commit comments

Comments
 (0)