Skip to content

Commit

Permalink
Update src/pytest_subtests/plugin.py
Browse files Browse the repository at this point in the history
Co-authored-by: Bruno Oliveira <[email protected]>
  • Loading branch information
ydshieh and nicoddemus authored Dec 9, 2024
1 parent 493e30d commit 8965561
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pytest_subtests/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def _addSkip(self: TestCaseFunction, testcase: TestCase, reason: str) -> None:
# For python < 3.11: the non-subtest skips have to be added by `_originaladdSkip` only after all subtest
# failures are processed by `_addSubTest`. (`self.instance._outcome` has no attribute `skipped/errors` anymore.)
# For python < 3.11, we also need to check if `self.instance._outcome` is `None` (this happens if the test
# class/method is decorated with `unittest.skip`).
# class/method is decorated with `unittest.skip`, see #173).
if sys.version_info < (3, 11) and self.instance._outcome is not None:
subtest_errors = [
x
Expand Down

0 comments on commit 8965561

Please sign in to comment.