From 40fe35a95ee67721720f2aa9b5059417b4637ee1 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Tue, 10 Nov 2015 15:30:35 +0200 Subject: 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. --- Lib/tkinter/test/support.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/tkinter/test/support.py') diff --git a/Lib/tkinter/test/support.py b/Lib/tkinter/test/support.py index 52df104003..dd155fad0f 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 -- cgit v1.2.1