Author vstinner
Recipients kayhayen, vstinner
Date 2019-04-26.07:40:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1556264430.66.0.0842370091683.issue36725@roundup.psfhosted.org>
In-reply-to
Content
I wrote an unit test to be able to re-use regrtest memory leak hunter:

import unittest

def simpleFunction59():
    a = 1
    try:
        return a
    finally:
        return a

class Tests(unittest.TestCase):
    def test_bug(self):
        for _ in range(10):
            simpleFunction59()


I confirm that there is a leak:

$ ./python -m test -R 3:3 test_bug
...
test_bug leaked [10, 10, 10] references, sum=30
...
History
Date User Action Args
2019-04-26 07:40:30vstinnersetrecipients: + vstinner, kayhayen
2019-04-26 07:40:30vstinnersetmessageid: <1556264430.66.0.0842370091683.issue36725@roundup.psfhosted.org>
2019-04-26 07:40:30vstinnerlinkissue36725 messages
2019-04-26 07:40:30vstinnercreate