diff options
| author | Bruno Oliveira <nicoddemus@gmail.com> | 2018-10-12 07:35:55 -0300 |
|---|---|---|
| committer | Berker Peksag <berker.peksag@gmail.com> | 2018-10-12 13:35:55 +0300 |
| commit | da2bf9f66d0c95b988c5d87646d168f65499b316 (patch) | |
| tree | 3373f35a7c27fa838b9c555891d8814f4358da04 /Lib/unittest/case.py | |
| parent | 4505f65ae7807f2420ed14d4f060e7cd5c4039d3 (diff) | |
| download | cpython-git-da2bf9f66d0c95b988c5d87646d168f65499b316.tar.gz | |
bpo-34900: Make TestCase.debug() work with subtests (GH-9707)
Diffstat (limited to 'Lib/unittest/case.py')
| -rw-r--r-- | Lib/unittest/case.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/unittest/case.py b/Lib/unittest/case.py index 1faa6b641f..2579c30474 100644 --- a/Lib/unittest/case.py +++ b/Lib/unittest/case.py @@ -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 |
