summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-06-03 01:51:43 (GMT)
committerGitHub <noreply@github.com>2019-06-03 01:51:43 (GMT)
commit0025350294959594e7f57aef4fc9579c77a0ed1c (patch)
tree8fb501ae17c33b278f4a9a2aa38a96b8b5f35164 /Misc/NEWS.d/next
parent13136e83a637a9f1cfbada7e93097005296659b4 (diff)
downloadcpython-0025350294959594e7f57aef4fc9579c77a0ed1c.zip
cpython-0025350294959594e7f57aef4fc9579c77a0ed1c.tar.gz
cpython-0025350294959594e7f57aef4fc9579c77a0ed1c.tar.bz2
bpo-37069: tests use catch_unraisable_exception() (GH-13762)
Modify test_coroutines, test_cprofile, test_generators, test_raise, test_ssl and test_yield_from to use support.catch_unraisable_exception() rather than support.captured_stderr(). test_thread: remove test_save_exception_state_on_error() which is now updated. test_unraisable_exception() checks that sys.unraisablehook() is called to handle _thread.start_new_thread() exception. test_cprofile now rely on unittest for test discovery: replace support.run_unittest() with unittest.main().
Diffstat (limited to 'Misc/NEWS.d/next')
-rw-r--r--Misc/NEWS.d/next/Tests/2019-06-03-02-30-36.bpo-37069.rVtdLk.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Tests/2019-06-03-02-30-36.bpo-37069.rVtdLk.rst b/Misc/NEWS.d/next/Tests/2019-06-03-02-30-36.bpo-37069.rVtdLk.rst
new file mode 100644
index 0000000..566ff51
--- /dev/null
+++ b/Misc/NEWS.d/next/Tests/2019-06-03-02-30-36.bpo-37069.rVtdLk.rst
@@ -0,0 +1,3 @@
+Modify test_coroutines, test_cprofile, test_generators, test_raise, test_ssl
+and test_yield_from to use :func:`test.support.catch_unraisable_exception`
+rather than :func:`test.support.captured_stderr`.