Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b3bfc3d8
Commit
b3bfc3d8
authored
Sep 21, 2010
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #9899: Fix test_tkinter.test_font on various platforms. Patch by
Ned Deily.
parent
52d42503
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
Lib/tkinter/test/test_tkinter/test_font.py
Lib/tkinter/test/test_tkinter/test_font.py
+10
-2
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/tkinter/test/test_tkinter/test_font.py
View file @
b3bfc3d8
...
...
@@ -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
())
...
...
Misc/NEWS
View file @
b3bfc3d8
...
...
@@ -207,6 +207,9 @@ Tools/Demos
Tests
-----
- Issue #9899: Fix test_tkinter.test_font on various platforms. Patch by
Ned Deily.
- Issue #9894: Do not hardcode ENOENT in test_subprocess.
- Issue #9315: Added tests for the trace module. Patch by Eli Bendersky.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment