You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Test suite skips failing tests when setUp[Class] fails #90681
Here's what happened. We had an error in test_typing.py, which was silently ignored.
======================================================================
ERROR: setUpClass (test.test_typing.NewTypeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\a\cpython\cpython\lib\test\test_typing.py", line 3917, in setUpClass
UserId = NewType('UserId', int)
NameError: name 'NewType' is not defined
----------------------------------------------------------------------
Ran 396 tests in 0.085s
FAILED (errors=1, skipped=1)
test test_typing failed
Activity
sobolevn commentedon Jan 25, 2022
Here's what happened. We had an error in
test_typing.py, which was silently ignored.Link: https://github.com/python/cpython/runs/4902363883?check_suite_focus=true
But, later the suite runner tried to rerun it:
And since nothing matched
setUpClass- no tests were executed and the CI went green instead of red.What can we do?
test_item to be rerun, fail for everything elsesetupClassfailure into the whole class rerunI would like to work on this, when we will decide which way is best.
Fidget-Spinner commentedon Jan 25, 2022
I vote for option 2.
[-]Test suite skips failing tests[/-][+]Test suite skips failing tests when setUp[Class] fails[/+][-]Test suite skips failing tests[/-][+]Test suite skips failing tests when setUp[Class] fails[/+]furkanonder commentedon May 8, 2023
@sobolevn The issue seems to have been solved. We can close the issue.