File tree Expand file tree Collapse file tree
Lib/tkinter/test/test_tkinter Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22import tkinter
33from tkinter import font
44from test .support import requires , run_unittest
5+ import tkinter .test .support as support
56
67requires ('gui' )
78
89class FontTest (unittest .TestCase ):
10+
11+ def setUp (self ):
12+ support .root_deiconify ()
13+
14+ def tearDown (self ):
15+ support .root_withdraw ()
16+
917 def test_font_eq (self ):
10- font1 = font .nametofont ("system " )
11- font2 = font .nametofont ("system " )
18+ font1 = font .nametofont ("TkDefaultFont " )
19+ font2 = font .nametofont ("TkDefaultFont " )
1220 self .assertIsNot (font1 , font2 )
1321 self .assertEqual (font1 , font2 )
1422 self .assertNotEqual (font1 , font1 .copy ())
Original file line number Diff line number Diff line change @@ -207,6 +207,9 @@ Tools/Demos
207207Tests
208208-----
209209
210+ - Issue #9899: Fix test_tkinter.test_font on various platforms. Patch by
211+ Ned Deily.
212+
210213- Issue #9894: Do not hardcode ENOENT in test_subprocess.
211214
212215- Issue #9315: Added tests for the trace module. Patch by Eli Bendersky.
You can’t perform that action at this time.
0 commit comments