]> granicus.if.org Git - python/commitdiff
bpo-30968: Fix test_get_font in IDLE's test_config. (#2769)
authorterryjreedy <tjreedy@udel.edu>
Thu, 20 Jul 2017 00:45:36 +0000 (20:45 -0400)
committerGitHub <noreply@github.com>
Thu, 20 Jul 2017 00:45:36 +0000 (20:45 -0400)
Lib/idlelib/idle_test/test_config.py

index 5f23c8d2f4075ada7ad307fe35f4ee3b351d50ab..bbf06504fc25527b8b17d0d390d6885dc59901de 100644 (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()