From b7f2e3d4f54d260b38637199c2f6534125423f60 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Fri, 6 Mar 2020 14:47:04 +0200 Subject: [PATCH] Inline PyobjContext When it was introduced in 8adac2878f183e2250d1ed53457b60f19e7316f9 it seems to have had some use, but now it doesn't. --- src/_pytest/python.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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