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 RazerM
Recipients RazerM, ncoghlan, yselivanov
Date 2015-10-06.09:21:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1444123306.69.0.0149294325224.issue25322@psf.upfronthosting.co.za>
In-reply-to
Content
In Lib/test/test_contextlib.py, there is a bug in the nested usage part of the following function:

def test_cm_is_reentrant(self): 
    ignore_exceptions = suppress(Exception) 
    with ignore_exceptions: 
        pass 
    with ignore_exceptions: 
        len(5) 
    with ignore_exceptions: 
        1/0 
        with ignore_exceptions: # Check nested usage 
            len(5)

Specifically, the final 2 lines aren't reached since the exception raised by 1/0 exits the context manager.
History
Date User Action Args
2015-10-06 09:21:46RazerMsetrecipients: + RazerM, ncoghlan, yselivanov
2015-10-06 09:21:46RazerMsetmessageid: <1444123306.69.0.0149294325224.issue25322@psf.upfronthosting.co.za>
2015-10-06 09:21:46RazerMlinkissue25322 messages
2015-10-06 09:21:46RazerMcreate