From 8a9534d8683c5d7df931a0b516c8bb6894394d56 Mon Sep 17 00:00:00 2001 From: joncrall Date: Mon, 17 Aug 2020 19:47:24 -0400 Subject: [PATCH] Add cls to XDoctestItem to support pytest-matrix --- xdoctest/plugin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/xdoctest/plugin.py b/xdoctest/plugin.py index 0c0d4c97..bc2392ea 100644 --- a/xdoctest/plugin.py +++ b/xdoctest/plugin.py @@ -153,6 +153,7 @@ def toterminal(self, tw): class XDoctestItem(pytest.Item): def __init__(self, name, parent, example=None): super(XDoctestItem, self).__init__(name, parent) + self.cls = XDoctestItem self.example = example self.obj = None self.fixture_request = None