summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter/test/support.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-11-10 13:30:35 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-11-10 13:30:35 (GMT)
commit40fe35a95ee67721720f2aa9b5059417b4637ee1 (patch)
treec9fb18ac4fdb845129ea8de7c95974ef220aca70 /Lib/tkinter/test/support.py
parentfed16ec7c254ad33d4932297d185c4b45dd26be1 (diff)
downloadcpython-40fe35a95ee67721720f2aa9b5059417b4637ee1.zip
cpython-40fe35a95ee67721720f2aa9b5059417b4637ee1.tar.gz
cpython-40fe35a95ee67721720f2aa9b5059417b4637ee1.tar.bz2
Issue #25263: Fixed the tkinter.test.test_tkinter.test_font.FontTest test
failure when the test is ran the second time. The root attribute was set in parent class in setUpClass and then overridded in child class in tearDownClass.
Diffstat (limited to 'Lib/tkinter/test/support.py')
-rw-r--r--Lib/tkinter/test/support.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tkinter/test/support.py b/Lib/tkinter/test/support.py
index 52df104..dd155fa 100644
--- a/Lib/tkinter/test/support.py
+++ b/Lib/tkinter/test/support.py
@@ -23,7 +23,7 @@ class AbstractTkTest:
def tearDownClass(cls):
cls.root.update_idletasks()
cls.root.destroy()
- cls.root = None
+ del cls.root
tkinter._default_root = None
tkinter._support_default_root = cls._old_support_default_root