mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
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.
This commit is contained in:
parent
fed16ec7c2
commit
40fe35a95e
2 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ class FontTest(AbstractTkTest, unittest.TestCase):
|
|||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
AbstractTkTest.setUpClass()
|
||||
AbstractTkTest.setUpClass.__func__(cls)
|
||||
try:
|
||||
cls.font = font.Font(root=cls.root, name=fontname, exists=True)
|
||||
except tkinter.TclError:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue