You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all,
The freshly released pytest 9.0 comes with the new "subtests" fixture, with which I played around a bit. I would have expected the rerunfailures plugin to handle a test with failed subtests as failed and therefore trigger a rerun, but it doesn't. Is this intended behaviour or just not supported yet?
I can reproduce this issue with pytest 9.0 or with pytest 8.2 + pytest-subtests plugin.
Example code:
counter1 = 0
counter2 = 0
def test_not_working(subtests):
global counter1
counter1 += 1
with subtests.test():
assert counter1 > 1, "If this test was rerun, this would succeed"
def test_working():
global counter2
counter2 += 1
assert counter2 > 1, "If this test was rerun, this would succeed"
Activity
icemac commentedon Nov 11, 2025
There is no support for subtests in this plug-in yet, a PR is welcome.
Bump the pip-deps group across 1 directory with 10 updates (#1331)
deps(deps-dev): bump the python-development group with 3 updates (#365)
chore: bump the minor-and-patch group with 5 updates (#3013)
chore: bump the minor-and-patch group with 5 updates (cartography-cnc…