[issue37069] regrtest: log unraisable exceptions and uncaught thread exceptions

2019-07-29 Thread STINNER Victor


STINNER Victor  added the comment:

regrtest now uses :func:`sys.unraisablehook` to mark a test as "environment 
altered" (ENV_CHANGED) if it emits an "unraisable exception".

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37069] regrtest: log unraisable exceptions and uncaught thread exceptions

2019-06-12 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 95f61c8b1619e736bd5e29a0da0183234634b6e8 by Victor Stinner in 
branch 'master':
bpo-37069: regrtest uses sys.unraisablehook (GH-13759)
https://github.com/python/cpython/commit/95f61c8b1619e736bd5e29a0da0183234634b6e8


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37069] regrtest: log unraisable exceptions and uncaught thread exceptions

2019-06-02 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 0025350294959594e7f57aef4fc9579c77a0ed1c by Victor Stinner in 
branch 'master':
bpo-37069: tests use catch_unraisable_exception() (GH-13762)
https://github.com/python/cpython/commit/0025350294959594e7f57aef4fc9579c77a0ed1c


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37069] regrtest: log unraisable exceptions and uncaught thread exceptions

2019-06-02 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +13647
pull_request: https://github.com/python/cpython/pull/13762

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37069] regrtest: log unraisable exceptions and uncaught thread exceptions

2019-06-02 Thread STINNER Victor


STINNER Victor  added the comment:

I wrote a minimum implementation: PR 13759 marks a test as "altered the 
execution environment" (ENV_CHANGED) if sys.unraisablehook() is called at least 
once. This this PR, 9 tests fail:

* test_urllib: see bpo-36918
* test_io: see bpo-18748

* test_thread: test_save_exception_state_on_error()
* test_yield_from: test_broken_getattr_handling()
* test_coroutines: test_fatal_coro_warning()
* test_cprofile: test_bad_counter_during_dealloc()
* test_raise: test_3611()
* test_ssl: test_sni_callback_raising() and 
test_sni_callback_wrong_return_type()

* test_generators: I'm not sure, it's maybe caused by doctests? multiple tests?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37069] regrtest: log unraisable exceptions and uncaught thread exceptions

2019-06-02 Thread STINNER Victor


Change by STINNER Victor :


--
keywords: +patch
pull_requests: +13644
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/13759

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37069] regrtest: log unraisable exceptions and uncaught thread exceptions

2019-05-27 Thread STINNER Victor


STINNER Victor  added the comment:

References:

* bpo-36829: sys.unraisablehook()
* bpo-1230540: threading.excepthook()

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37069] regrtest: log unraisable exceptions and uncaught thread exceptions

2019-05-27 Thread STINNER Victor


New submission from STINNER Victor :

Python 3.8 got 2 new hooks: sys.unraisablehook and threading.excepthook. It 
would be interesting to catch these exceptions and display them again in the 
test summary.

I modified the io.IOBase destructor to log close() exception. There are still 
open issues: see bpo-18748. Once these issues will be fixed, maybe it would 
even be interesting to make a test fail if at least one uncaught thread 
exception is raised or an unraisable exception is logged?

--
components: Tests
messages: 343693
nosy: vstinner
priority: normal
severity: normal
status: open
title: regrtest: log unraisable exceptions and uncaught thread exceptions
versions: Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com