Xavier de Gaye <xdeg...@gmail.com> added the comment: Checking the test_exceptions test cases that are added by PR 2327 on the current master branch, before the merge of PR 2327: * test_recursion_normalizing_exception still fails (SIGABRT on a debug build and SIGSEGV otherwise) * test_recursion_normalizing_infinite_exception is ok as expected * test_recursion_normalizing_with_no_memory still fails with a SIGSEGV
The attached script except_raises_except.py exercises case 3) described in msg231933. The output is as follows when PR 2327 is applied and confirms that the ResourceWarning is now printed: Traceback (most recent call last): File "except_raises_except.py", line 11, in <module> generator.throw(MyException) File "except_raises_except.py", line 7, in gen yield File "except_raises_except.py", line 3, in __init__ raise MyException File "except_raises_except.py", line 3, in __init__ raise MyException File "except_raises_except.py", line 3, in __init__ raise MyException [Previous line repeated 495 more times] RecursionError: maximum recursion depth exceeded while calling a Python object sys:1: ResourceWarning: unclosed file <_io.FileIO name='except_raises_except.py' mode='rb' closefd=True> ---------- versions: -Python 3.5 Added file: https://bugs.python.org/file47239/except_raises_except.py _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue30697> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com