mirror of
https://github.com/python/cpython.git
synced 2025-08-27 12:16:04 +00:00
gh-113267: Revert "gh-106584: Fix exit code for unittest in Python 3.12 (#106588)" (GH-114470)
This reverts commit 8fc071345b
.
This commit is contained in:
parent
ca715e56a1
commit
ecabff98c4
5 changed files with 14 additions and 16 deletions
|
@ -606,6 +606,7 @@ class TestCase(object):
|
|||
else:
|
||||
stopTestRun = None
|
||||
|
||||
result.startTest(self)
|
||||
try:
|
||||
testMethod = getattr(self, self._testMethodName)
|
||||
if (getattr(self.__class__, "__unittest_skip__", False) or
|
||||
|
@ -616,9 +617,6 @@ class TestCase(object):
|
|||
_addSkip(result, self, skip_why)
|
||||
return result
|
||||
|
||||
# Increase the number of tests only if it hasn't been skipped
|
||||
result.startTest(self)
|
||||
|
||||
expecting_failure = (
|
||||
getattr(self, "__unittest_expecting_failure__", False) or
|
||||
getattr(testMethod, "__unittest_expecting_failure__", False)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue