From b46a6c38b93ee38bd0b1f8f6dd2ed62cb68361f6 Mon Sep 17 00:00:00 2001 From: David Foster Date: Wed, 17 Jul 2024 09:15:27 -0400 Subject: [PATCH] Test Runner: A skip inside a subtest is no longer treated as a failure --- src/crystal/tests/util/subtests.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/crystal/tests/util/subtests.py b/src/crystal/tests/util/subtests.py index 988ceddf..9842c3cf 100644 --- a/src/crystal/tests/util/subtests.py +++ b/src/crystal/tests/util/subtests.py @@ -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() @@ -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: