diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-06-20 09:50:03 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-20 09:50:03 (GMT) |
| commit | 232add02418f0b061881501e4f2d1241a2404f5d (patch) | |
| tree | d0f36b2b105e20dfbdc3bdf3453e1920d891f457 /Python/pythonrun.c | |
| parent | ce52f5ee0925925f5662f6b34cc637cfe6c0a46e (diff) | |
| download | cpython-232add02418f0b061881501e4f2d1241a2404f5d.zip cpython-232add02418f0b061881501e4f2d1241a2404f5d.tar.gz cpython-232add02418f0b061881501e4f2d1241a2404f5d.tar.bz2 | |
bpo-33746: Fix test_unittest.testRegisterResult() in verbose mode (GH-7799)
Only make sure that the result is in unittest.signals._results, don't
check the full content of unittest.signals._results.
support._run_suite() uses TextTestRunner in verbose mode, but
TextTestRunner.run() calls registerResult(result) which made the test
fail with "odd object in result set".
Call also removeResult() to restore unittest.signals._results to
avoid test side effect.
(cherry picked from commit fd8fbce495c32b0cbc13f71a8e9d4eec6f48c844)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions
