diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2015-11-10 15:30:35 +0200 |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-11-10 15:30:35 +0200 |
| commit | 40fe35a95ee67721720f2aa9b5059417b4637ee1 (patch) | |
| tree | c9fb18ac4fdb845129ea8de7c95974ef220aca70 /Lib/tkinter/test/test_tkinter/test_font.py | |
| parent | fed16ec7c254ad33d4932297d185c4b45dd26be1 (diff) | |
| download | cpython-git-40fe35a95ee67721720f2aa9b5059417b4637ee1.tar.gz | |
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/test_tkinter/test_font.py')
| -rw-r--r-- | Lib/tkinter/test/test_tkinter/test_font.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tkinter/test/test_tkinter/test_font.py b/Lib/tkinter/test/test_tkinter/test_font.py index 25b59132ad..c094c61ce4 100644 --- a/Lib/tkinter/test/test_tkinter/test_font.py +++ b/Lib/tkinter/test/test_tkinter/test_font.py @@ -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: |
