summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/idle_test
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2021-04-30 18:34:29 (GMT)
committerGitHub <noreply@github.com>2021-04-30 18:34:29 (GMT)
commit6689e45dfee75d756c540ff0946ebf0ae8847f43 (patch)
tree9b8c7f182cbb80d106724bfeb5d65d8cb6008c40 /Lib/idlelib/idle_test
parent665c7746fca180266b121183c2d5136c547006e0 (diff)
downloadcpython-6689e45dfee75d756c540ff0946ebf0ae8847f43.zip
cpython-6689e45dfee75d756c540ff0946ebf0ae8847f43.tar.gz
cpython-6689e45dfee75d756c540ff0946ebf0ae8847f43.tar.bz2
bpo-43981: Fix reference leaks in test_squeezer (GH-25758)
Diffstat (limited to 'Lib/idlelib/idle_test')
-rw-r--r--Lib/idlelib/idle_test/test_squeezer.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/idlelib/idle_test/test_squeezer.py b/Lib/idlelib/idle_test/test_squeezer.py
index eaf81a5..86c5d41 100644
--- a/Lib/idlelib/idle_test/test_squeezer.py
+++ b/Lib/idlelib/idle_test/test_squeezer.py
@@ -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