mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Issue #27196: Stop 'application destroyed' warnings when running IDLE tests.
The update_idletasks solution was provided by Serhiy Storchaka.
This commit is contained in:
parent
75cbeb5dac
commit
6047b55372
5 changed files with 22 additions and 10 deletions
|
@ -1,7 +1,7 @@
|
|||
"""Unittest for idlelib.WidgetRedirector
|
||||
'''Test idlelib.WidgetRedirector.
|
||||
|
||||
100% coverage
|
||||
"""
|
||||
'''
|
||||
from test.support import requires
|
||||
import unittest
|
||||
from idlelib.idle_test.mock_idle import Func
|
||||
|
@ -49,6 +49,7 @@ class WidgetRedirectorTest(unittest.TestCase):
|
|||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
del cls.text
|
||||
cls.root.update_idletasks()
|
||||
cls.root.destroy()
|
||||
del cls.root
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue