Skip to content

Commit 9f9192a

Browse files
authored
bpo-30968: Fix test_get_font in IDLE's test_config. (#2769)
1 parent 856cbcc commit 9f9192a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/idlelib/idle_test/test_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ def test_get_font(self):
608608
f = Font.actual(Font(name='TkFixedFont', exists=True, root=root))
609609
self.assertEqual(
610610
conf.GetFont(root, 'main', 'EditorWindow'),
611-
(f['family'], 10 if f['size'] < 10 else f['size'], f['weight']))
611+
(f['family'], 10 if f['size'] <= 0 else f['size'], f['weight']))
612612

613613
# Cleanup root
614614
root.destroy()

0 commit comments

Comments
 (0)