on python 3.6.8, pytest 4.5.0, pytest-repeat 0.8.0
py.test --doctest-modules --count=2
@pytest.fixture(autouse=True)
def __pytest_repeat_step_number(request):
if request.config.option.count > 1:
try:
return request.param
except AttributeError:
> if issubclass(request.cls, TestCase):
E TypeError: issubclass() arg 1 must be a class
When the test is a doctest (request.node is a DoctestItem), request.cls is None.
I assume this can be fixed with an extra is not None in the condition on line 42:
|
if issubclass(request.cls, TestCase): |
Happy to open a PR