diff --git a/src/_pytest/python.py b/src/_pytest/python.py index bb2b43153..c11b2a38d 100644 --- a/src/_pytest/python.py +++ b/src/_pytest/python.py @@ -249,13 +249,10 @@ def pytest_pycollect_makeitem(collector, name, obj): outcome.force_result(res) -class PyobjContext: +class PyobjMixin: module = pyobj_property("Module") cls = pyobj_property("Class") instance = pyobj_property("Instance") - - -class PyobjMixin(PyobjContext): _ALLOW_MARKERS = True @property