Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bpo-37069: tests use catch_unraisable_exception()#13762

Merged
vstinner merged 1 commit into
python:masterpython/cpython:masterfrom
vstinner:catch_unraisableCopy head branch name to clipboard
Jun 3, 2019
Merged

bpo-37069: tests use catch_unraisable_exception()#13762
vstinner merged 1 commit into
python:masterpython/cpython:masterfrom
vstinner:catch_unraisableCopy head branch name to clipboard

Conversation

@vstinner

@vstinner vstinner commented Jun 3, 2019

Copy link
Copy Markdown
Member

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().

https://bugs.python.org/issue37069

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().
@vstinner

vstinner commented Jun 3, 2019

Copy link
Copy Markdown
Member Author

Travis CI: "Documentation tests" failed with:

Warning, treated as error:
duplicate object description of email.message, other instance in library/email.message, use :noindex: for one of them

@vstinner

vstinner commented Jun 3, 2019

Copy link
Copy Markdown
Member Author

Travis CI: "Documentation tests" failed with: (...)

https://bugs.python.org/issue37136

@vstinner vstinner merged commit 0025350 into python:master Jun 3, 2019
@vstinner vstinner deleted the catch_unraisable branch June 3, 2019 01:51
DinoV pushed a commit to DinoV/cpython that referenced this pull request Jan 14, 2020
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().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.