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 vstinner
Recipients lukasz.langa, miss-islington, p-ganssle, vstinner
Date 2020-08-17.07:47:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> New changeset 87d8287865e5c9f137f6b5cf8c34c2c509eb5e9d by Paul Ganssle in branch 'master':
> bpo-41025: Fix subclassing for zoneinfo.ZoneInfo (GH-20965)

This change introduced a reference leak. 3.9 and master branch are affected.

$ make && ./python -m test -R 3:3 test_zoneinfo 
test_zoneinfo leaked [84, 84, 84] references, sum=252
test_zoneinfo leaked [41, 41, 41] memory blocks, sum=123

ZoneInfoSubclassTest and CZoneInfoSubclassTest test cases leak.

Example of test method which leaks:

Date User Action Args
2020-08-17 07:47:38vstinnersetrecipients: + vstinner, lukasz.langa, p-ganssle, miss-islington
2020-08-17 07:47:38vstinnersetmessageid: <>
2020-08-17 07:47:38vstinnerlinkissue41025 messages
2020-08-17 07:47:37vstinnercreate