summaryrefslogtreecommitdiffstats
path: root/Python/getargs.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-06-20 09:54:32 (GMT)
committerGitHub <noreply@github.com>2018-06-20 09:54:32 (GMT)
commit2b7574213987ddcbc5e83c6798668c7d600b6608 (patch)
tree4fd1eaff6110deef455e3c96ce54a1affdd60403 /Python/getargs.c
parent17d4c53fa3516f78df3c4f343bc6d2007af157cf (diff)
downloadcpython-2b7574213987ddcbc5e83c6798668c7d600b6608.zip
cpython-2b7574213987ddcbc5e83c6798668c7d600b6608.tar.gz
cpython-2b7574213987ddcbc5e83c6798668c7d600b6608.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/getargs.c')
0 files changed, 0 insertions, 0 deletions