summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-06-21 11:41:44 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-06-21 11:41:44 (GMT)
commit753a1dfcc216ad580cfdac6723c381a7bfc72e99 (patch)
tree29b53ea105d6cf8ac37094a7a94a233b035fbad7 /Lib/tkinter
parent9fe164364af47d119c4bed420694570ee9a4e6a6 (diff)
downloadcpython-753a1dfcc216ad580cfdac6723c381a7bfc72e99.zip
cpython-753a1dfcc216ad580cfdac6723c381a7bfc72e99.tar.gz
cpython-753a1dfcc216ad580cfdac6723c381a7bfc72e99.tar.bz2
Issue #24408: Fixed test for tkinter.Font on OS X.
Based on patch by Martin Panter.
Diffstat (limited to 'Lib/tkinter')
-rw-r--r--Lib/tkinter/test/test_tkinter/test_font.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/Lib/tkinter/test/test_tkinter/test_font.py b/Lib/tkinter/test/test_tkinter/test_font.py
index ba3b9da..25b5913 100644
--- a/Lib/tkinter/test/test_tkinter/test_font.py
+++ b/Lib/tkinter/test/test_tkinter/test_font.py
@@ -75,10 +75,19 @@ class FontTest(AbstractTkTest, unittest.TestCase):
def test_families(self):
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):
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)
tests_gui = (FontTest, )