bpo-43981: Fix reference leaks in test_squeezer (GH-25758)

This commit is contained in:
Pablo Galindo 2021-04-30 19:34:29 +01:00 committed by GitHub
parent 665c7746fc
commit 6689e45dfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -311,6 +311,7 @@ class ExpandingButtonTest(unittest.TestCase):
squeezer = Mock()
squeezer.editwin.text = Text(root)
squeezer.editwin.per = Percolator(squeezer.editwin.text)
self.addCleanup(squeezer.editwin.per.close)
# Set default values for the configuration settings.
squeezer.auto_squeeze_min_lines = 50

View File

@ -0,0 +1 @@
Fix reference leak in test_squeezer. Patch by Pablo Galindo