summaryrefslogtreecommitdiff
path: root/Lib/test/pythoninfo.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-06-20 11:29:33 +0200
committerGitHub <noreply@github.com>2018-06-20 11:29:33 +0200
commitfd8fbce495c32b0cbc13f71a8e9d4eec6f48c844 (patch)
treef640fd19ae0816fe2bb9baf66174da3ccd2476a5 /Lib/test/pythoninfo.py
parent9bb92235f6272b28d59fcbd04f101fdc6b1bbc50 (diff)
downloadcpython-git-fd8fbce495c32b0cbc13f71a8e9d4eec6f48c844.tar.gz
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.
Diffstat (limited to 'Lib/test/pythoninfo.py')
0 files changed, 0 insertions, 0 deletions