Replies: 1 comment 4 replies
-
Hi @Erotemic, good question! We've added the For now, constructing Since you are using it, you have two options:
|
Beta Was this translation helpful? Give feedback.
-
Hi @Erotemic, good question! We've added the For now, constructing Since you are using it, you have two options:
|
Beta Was this translation helpful? Give feedback.
-
I have a pytest plugin for the xdoctest package: xdoctest.plugin
When I wrote this code I followed the code in _pytest.doctest very closely.
Recently when I've been running it I've been getting a warning:
Which seems to be because I'm not calling
FixtureRequest
with_ispytest=True
. If I add in that line the warning goes away, but I'd rather not do that because my plugin is not part of pytest itself. However, I'm not sure what the alternative or new preferred way to call that functionality would be.How should external plugins handle writing something like
_setup_fixtures
on a class that inherits frompytest.Item
?Beta Was this translation helpful? Give feedback.
All reactions