mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-36396: Remove fgBg param of idlelib.config.GetHighlight() (GH-12491)
This param was only used once and changed the return type.
This commit is contained in:
parent
5086589305
commit
c1419578a1
7 changed files with 41 additions and 58 deletions
|
@ -373,10 +373,6 @@ class IdleConfTest(unittest.TestCase):
|
|||
eq = self.assertEqual
|
||||
eq(conf.GetHighlight('IDLE Classic', 'normal'), {'foreground': '#000000',
|
||||
'background': '#ffffff'})
|
||||
eq(conf.GetHighlight('IDLE Classic', 'normal', 'fg'), '#000000')
|
||||
eq(conf.GetHighlight('IDLE Classic', 'normal', 'bg'), '#ffffff')
|
||||
with self.assertRaises(config.InvalidFgBg):
|
||||
conf.GetHighlight('IDLE Classic', 'normal', 'fb')
|
||||
|
||||
# Test cursor (this background should be normal-background)
|
||||
eq(conf.GetHighlight('IDLE Classic', 'cursor'), {'foreground': 'black',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue