Skip to content

Commit

Permalink
Test Runner: A skip inside a subtest is no longer treated as a failure
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfstr committed Jul 17, 2024
1 parent 1ee9e07 commit b46a6c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/crystal/tests/util/subtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ def run(self) -> 'Iterator[SubtestsContext]':
raised_exc = False
except _SubtestReturn:
raised_exc = False
except SkipTest:
raised_exc = False
finally:
subtest_report = self._report.getvalue()
self._report.close()
Expand Down Expand Up @@ -128,6 +130,8 @@ async def wrapper():
raised_exc = False
except _SubtestReturn:
raised_exc = False
except SkipTest:
raised_exc = False
finally:
subtest_report = subtests._report.getvalue()
if len(subtest_report) != 0:
Expand Down

0 comments on commit b46a6c3

Please sign in to comment.