Skip to content

Commit b0ed64d

Browse files
author
Cody D'Ambrosio
committed
Merge branch 'pytest-subtests-support' of https://github.com/codambro/pytest-tap into pytest-subtests-support
2 parents 78c2dcf + b44b935 commit b0ed64d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/pytest_tap/plugin.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,16 @@ def pytest_runtestloop(self, session):
3737
"""Output the plan line first."""
3838
option = session.config.option
3939
if (option.tap_stream or option.tap_combined) and not (
40-
session.config.pluginmanager.has_plugin("subtests")):
40+
session.config.pluginmanager.has_plugin("subtests")
41+
):
4142
self._tracker.set_plan(session.testscollected)
4243

4344
@pytest.hookimpl(optionalhook=True)
4445
def pytest_xdist_node_collection_finished(self, node, ids):
4546
"""Output the plan line first when using xdist."""
4647
if (self._tracker.streaming or self._tracker.combined) and not (
47-
node.config.pluginmanager.has_plugin("subtests")):
48+
node.config.pluginmanager.has_plugin("subtests")
49+
):
4850
self._tracker.set_plan(len(ids))
4951

5052
@pytest.hookimpl()

0 commit comments

Comments
 (0)