We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
pytester.plugins
1 parent b3ee80b commit c3084d3Copy full SHA for c3084d3
changelog/13522.bugfix.rst
@@ -0,0 +1 @@
1
+Fixed :fixture:`pytester` in subprocess mode ignored all :attr`pytester.plugins <pytest.Pytester.plugins>` except the first.
src/_pytest/pytester.py
@@ -1494,9 +1494,9 @@ def runpytest_subprocess(
1494
__tracebackhide__ = True
1495
p = make_numbered_dir(root=self.path, prefix="runpytest-", mode=0o700)
1496
args = (f"--basetemp={p}", *args)
1497
- plugins = [x for x in self.plugins if isinstance(x, str)]
1498
- if plugins:
1499
- args = ("-p", plugins[0], *args)
+ for plugin in self.plugins:
+ if isinstance(plugin, str):
+ args = ("-p", plugin, *args)
1500
args = self._getpytestargs() + args
1501
return self.run(*args, timeout=timeout)
1502
0 commit comments