Browse Source
bpo-43981: Fix reference leaks in test_squeezer (GH-25758)
pull/25768/head
Pablo Galindo
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
0 deletions
-
Lib/idlelib/idle_test/test_squeezer.py
-
Misc/NEWS.d/next/IDLE/2021-04-30-17-59-56.bpo-43981.3EFl1H.rst
|
|
|
@ -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 |
|
|
|
|
|
|
|
@ -0,0 +1 @@ |
|
|
|
Fix reference leak in test_squeezer. Patch by Pablo Galindo |