diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-09-21 16:26:09 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-09-21 16:26:09 (GMT) |
commit | b3bfc3d88b9693f9a21dfcee2530f889025f239d (patch) | |
tree | 09914c7fd8f49074cb4cc57a2597a3e9895992f8 /Lib/tkinter/test | |
parent | 52d42503d5f7e763264b03f12785c46a467c196b (diff) | |
download | cpython-b3bfc3d88b9693f9a21dfcee2530f889025f239d.zip cpython-b3bfc3d88b9693f9a21dfcee2530f889025f239d.tar.gz cpython-b3bfc3d88b9693f9a21dfcee2530f889025f239d.tar.bz2 |
Issue #9899: Fix test_tkinter.test_font on various platforms. Patch by
Ned Deily.
Diffstat (limited to 'Lib/tkinter/test')
-rw-r--r-- | Lib/tkinter/test/test_tkinter/test_font.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Lib/tkinter/test/test_tkinter/test_font.py b/Lib/tkinter/test/test_tkinter/test_font.py index 56e0c02..7bd9900 100644 --- a/Lib/tkinter/test/test_tkinter/test_font.py +++ b/Lib/tkinter/test/test_tkinter/test_font.py @@ -2,13 +2,21 @@ import unittest import tkinter from tkinter import font from test.support import requires, run_unittest +import tkinter.test.support as support requires('gui') class FontTest(unittest.TestCase): + + def setUp(self): + support.root_deiconify() + + def tearDown(self): + support.root_withdraw() + def test_font_eq(self): - font1 = font.nametofont("system") - font2 = font.nametofont("system") + font1 = font.nametofont("TkDefaultFont") + font2 = font.nametofont("TkDefaultFont") self.assertIsNot(font1, font2) self.assertEqual(font1, font2) self.assertNotEqual(font1, font1.copy()) |