[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

[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 -- ___

[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 -- _

[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 ___ __

[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: te

[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 ___ _

[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 ___ __

[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 issue