summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorterryjreedy <tjreedy@udel.edu>2017-07-20 00:45:36 (GMT)
committerGitHub <noreply@github.com>2017-07-20 00:45:36 (GMT)
commit9f9192afbb4e45d09f0d3d717b457d157dc46398 (patch)
tree2c4dfe3d7827cdba6cba226db01c1faead140224
parent856cbcc12f2e4cca93af5dc7ed6bcea4dd942f10 (diff)
downloadcpython-9f9192afbb4e45d09f0d3d717b457d157dc46398.zip
cpython-9f9192afbb4e45d09f0d3d717b457d157dc46398.tar.gz
cpython-9f9192afbb4e45d09f0d3d717b457d157dc46398.tar.bz2
bpo-30968: Fix test_get_font in IDLE's test_config. (#2769)
-rw-r--r--Lib/idlelib/idle_test/test_config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/idle_test/test_config.py b/Lib/idlelib/idle_test/test_config.py
index 5f23c8d..bbf0650 100644
--- a/Lib/idlelib/idle_test/test_config.py
+++ b/Lib/idlelib/idle_test/test_config.py
@@ -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()