We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04ba966 commit 560f9daCopy full SHA for 560f9da
1 file changed
Lib/test/test_ttk_guionly.py
@@ -8,6 +8,7 @@
8
from _tkinter import TclError
9
from tkinter import ttk
10
from tkinter.test import runtktests
11
+from tkinter.test.support import get_tk_root
12
13
try:
14
ttk.Button()
@@ -22,8 +23,11 @@ def test_main(enable_gui=False):
22
23
elif 'gui' not in support.use_resources:
24
support.use_resources.append('gui')
25
- support.run_unittest(
26
- *runtktests.get_tests(text=False, packages=['test_ttk']))
+ try:
27
+ support.run_unittest(
28
+ *runtktests.get_tests(text=False, packages=['test_ttk']))
29
+ finally:
30
+ get_tk_root().destroy()
31
32
if __name__ == '__main__':
33
test_main(enable_gui=True)
0 commit comments