This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xdegaye
Recipients brett.cannon, pitrou, serhiy.storchaka, vstinner, xdegaye
Date 2017-10-26.13:01:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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 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 "", line 11, in <module>
  File "", line 7, in gen
  File "", line 3, in __init__
    raise MyException
  File "", line 3, in __init__
    raise MyException
  File "", 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='' mode='rb' closefd=True>
Date User Action Args
2017-10-26 13:01:35xdegayesetrecipients: + xdegaye, brett.cannon, pitrou, vstinner, serhiy.storchaka
2017-10-26 13:01:35xdegayesetmessageid: <>
2017-10-26 13:01:35xdegayelinkissue30697 messages
2017-10-26 13:01:35xdegayecreate