Remove handling of collection errors by --sw

Since then pytest itself adopted the behavior of interrupting
the test session on collection errors, so --sw no longer needs
to handle this.

The --sw behavior seems have been implemented when pytest
would continue execution even if there were collection errors.
This commit is contained in:
Bruno Oliveira
2019-06-13 17:19:36 -03:00
committed by Bruno Oliveira
parent e2fa2b621c
commit 43a499e6fa
2 changed files with 1 additions and 13 deletions

View File

@@ -71,12 +71,6 @@ class StepwisePlugin:
config.hook.pytest_deselected(items=already_passed)
def pytest_collectreport(self, report):
if self.active and report.failed:
self.session.shouldstop = (
"Error when collecting test, stopping test execution."
)
def pytest_runtest_logreport(self, report):
# Skip this hook if plugin is not active or the test is xfailed.
if not self.active or "xfail" in report.keywords: