bpo-30968: Fix test_get_font in IDLE's test_config. (#2769)

This commit is contained in:
terryjreedy 2017-07-19 20:45:36 -04:00 committed by GitHub
parent 856cbcc12f
commit 9f9192afbb

View file

@ -608,7 +608,7 @@ class IdleConfTest(unittest.TestCase):
f = Font.actual(Font(name='TkFixedFont', exists=True, root=root))
self.assertEqual(
conf.GetFont(root, 'main', 'EditorWindow'),
(f['family'], 10 if f['size'] < 10 else f['size'], f['weight']))
(f['family'], 10 if f['size'] <= 0 else f['size'], f['weight']))
# Cleanup root
root.destroy()