Skip to content

Commit b3b26d1

Browse files
committed
Add all pytester.plugins to runpytest_subprocess invocation
Closes pytest-dev#13314
1 parent e35f1bf commit b3b26d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/_pytest/pytester.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1488,8 +1488,8 @@ def runpytest_subprocess(
14881488
p = make_numbered_dir(root=self.path, prefix="runpytest-", mode=0o700)
14891489
args = (f"--basetemp={p}", *args)
14901490
plugins = [x for x in self.plugins if isinstance(x, str)]
1491-
if plugins:
1492-
args = ("-p", plugins[0], *args)
1491+
for plugin in reversed(plugins):
1492+
args = ("-p", plugin, *args)
14931493
args = self._getpytestargs() + args
14941494
return self.run(*args, timeout=timeout)
14951495

0 commit comments

Comments
 (0)