mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-34900: Make TestCase.debug() work with subtests (GH-9707)
This commit is contained in:
parent
4505f65ae7
commit
da2bf9f66d
3 changed files with 17 additions and 1 deletions
|
@ -514,7 +514,7 @@ class TestCase(object):
|
|||
case as failed but resumes execution at the end of the enclosed
|
||||
block, allowing further test code to be executed.
|
||||
"""
|
||||
if not self._outcome.result_supports_subtests:
|
||||
if self._outcome is None or not self._outcome.result_supports_subtests:
|
||||
yield
|
||||
return
|
||||
parent = self._subtest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue