diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-10-12 11:07:44 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2018-10-12 11:07:44 (GMT) |
commit | c1fe49c01f3850aaa32a7d75e47f90eb5c5f7efe (patch) | |
tree | f10c478d5521acaa47e0e4967512fc4469c09904 /Lib/unittest/case.py | |
parent | d918e98056b7ef8d90d71805531cec3e67b5450e (diff) | |
download | cpython-c1fe49c01f3850aaa32a7d75e47f90eb5c5f7efe.zip cpython-c1fe49c01f3850aaa32a7d75e47f90eb5c5f7efe.tar.gz cpython-c1fe49c01f3850aaa32a7d75e47f90eb5c5f7efe.tar.bz2 |
bpo-34900: Make TestCase.debug() work with subtests (GH-9707)
(cherry picked from commit da2bf9f66d0c95b988c5d87646d168f65499b316)
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
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 c3634ec..402fa47 100644 --- a/Lib/unittest/case.py +++ b/Lib/unittest/case.py @@ -509,7 +509,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 |