Closed crecine closed 11 months ago
using the update in the linked PR allows test to skip successfully.
test_cruise.py:TestCruise.test_cruise_result ... SKIP (00:00:0.00, 161 MB)
Skipping this benchmark
The following tests were skipped:
test_cruise.py:TestCruise.test_cruise_result
A unit test using the skip decorator fails in Python 3.12.1, but not in previous Python versions
The following is the result of running that test case from testflo in Python 3.12.1
In prior versions of Python, the test skipped as expected.
Running the test directly with unittest.main() also skips as expected.
In the recent change to unittest,
result.startTest
was moved from the beginning of therun
method ofTestCase
to after the skip decorator is handled.UnitTestResult appears to rely on this being called to populate
self._tests
which is then used in itsaddSkip
method.