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
ac803cd2
Commit
ac803cd2
authored
Jun 21, 2015
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Plain Diff
Issue #24408: Fixed test for tkinter.Font on OS X.
Based on patch by Martin Panter.
parents
6d58f8dc
753a1dfc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
Lib/tkinter/test/test_tkinter/test_font.py
Lib/tkinter/test/test_tkinter/test_font.py
+10
-1
No files found.
Lib/tkinter/test/test_tkinter/test_font.py
View file @
ac803cd2
...
@@ -75,10 +75,19 @@ class FontTest(AbstractTkTest, unittest.TestCase):
...
@@ -75,10 +75,19 @@ class FontTest(AbstractTkTest, unittest.TestCase):
def
test_families
(
self
):
def
test_families
(
self
):
families
=
font
.
families
(
self
.
root
)
families
=
font
.
families
(
self
.
root
)
self
.
assertIn
(
self
.
font
.
actual
(
'family'
),
families
)
self
.
assertIsInstance
(
families
,
tuple
)
self
.
assertTrue
(
families
)
for
family
in
families
:
self
.
assertIsInstance
(
family
,
str
)
self
.
assertTrue
(
family
)
def
test_names
(
self
):
def
test_names
(
self
):
names
=
font
.
names
(
self
.
root
)
names
=
font
.
names
(
self
.
root
)
self
.
assertIsInstance
(
names
,
tuple
)
self
.
assertTrue
(
names
)
for
name
in
names
:
self
.
assertIsInstance
(
name
,
str
)
self
.
assertTrue
(
name
)
self
.
assertIn
(
fontname
,
names
)
self
.
assertIn
(
fontname
,
names
)
tests_gui
=
(
FontTest
,
)
tests_gui
=
(
FontTest
,
)
...
...
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