aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/tkinter/test/test_tkinter/test_misc.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-08-24 09:10:58 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2014-08-24 09:10:58 +0300
commit66106626edb739f7d5dd3d0a7a2dd634a0e5a0b8 (patch)
treebc5490fca9f1c1b35565d445ccf6da176b558d01 /Lib/tkinter/test/test_tkinter/test_misc.py
parentfa6e73bac93957136d0e41e3f09572995d95f4cc (diff)
parentd00aff2f62481c3e8cf3b8e9cbbaf888361ffdd4 (diff)
downloadcpython-66106626edb739f7d5dd3d0a7a2dd634a0e5a0b8.tar.gz
cpython-66106626edb739f7d5dd3d0a7a2dd634a0e5a0b8.zip
Issue #22236: Tkinter tests now don't reuse default root window. New root
window is created for every test class. Fixed Tkinter images copying operations in NoDefaultRoot mode. Tcl command names generated for "after" callbacks now contains a name of original function.
Diffstat (limited to 'Lib/tkinter/test/test_tkinter/test_misc.py')
-rw-r--r--Lib/tkinter/test/test_tkinter/test_misc.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/Lib/tkinter/test/test_tkinter/test_misc.py b/Lib/tkinter/test/test_tkinter/test_misc.py
index 46f517027a3..85ee2c70b1b 100644
--- a/Lib/tkinter/test/test_tkinter/test_misc.py
+++ b/Lib/tkinter/test/test_tkinter/test_misc.py
@@ -1,14 +1,11 @@
import unittest
import tkinter
-from tkinter import ttk
from test import support
+from tkinter.test.support import AbstractTkTest
support.requires('gui')
-class MiscTest(unittest.TestCase):
-
- def setUp(self):
- self.root = ttk.setup_master()
+class MiscTest(AbstractTkTest, unittest.TestCase):
def test_repr(self):
t = tkinter.Toplevel(self.root, name='top')