diff options
author | Victor Stinner <vstinner@redhat.com> | 2018-06-20 09:29:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-20 09:29:33 (GMT) |
commit | fd8fbce495c32b0cbc13f71a8e9d4eec6f48c844 (patch) | |
tree | f640fd19ae0816fe2bb9baf66174da3ccd2476a5 /Misc/NEWS.d | |
parent | 9bb92235f6272b28d59fcbd04f101fdc6b1bbc50 (diff) | |
download | cpython-fd8fbce495c32b0cbc13f71a8e9d4eec6f48c844.zip cpython-fd8fbce495c32b0cbc13f71a8e9d4eec6f48c844.tar.gz cpython-fd8fbce495c32b0cbc13f71a8e9d4eec6f48c844.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.
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/Tests/2018-06-19-17-55-46.bpo-33746.Sz7avn.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Tests/2018-06-19-17-55-46.bpo-33746.Sz7avn.rst b/Misc/NEWS.d/next/Tests/2018-06-19-17-55-46.bpo-33746.Sz7avn.rst new file mode 100644 index 0000000..e79399f --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2018-06-19-17-55-46.bpo-33746.Sz7avn.rst @@ -0,0 +1 @@ +Fix test_unittest when run in verbose mode. |