Skip to content

Commit 305b445

Browse files
committed
Check if unbinding works
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent 2ca120e commit 305b445

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

bpython/config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ def get_key_no_doublebind(attr, already_used={}):
194194
struct.save_append_py = config.getboolean('general', 'save_append_py')
195195

196196
struct.curtsies_list_above = config.getboolean('curtsies', 'list_above')
197-
struct.curtsies_right_arrow_completion = config.getboolean('curtsies', 'right_arrow_completion')
197+
struct.curtsies_right_arrow_completion = config.getboolean('curtsies',
198+
'right_arrow_completion')
198199

199200
color_scheme_name = config.get('general', 'color_scheme')
200201

bpython/test/test_config.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,11 @@ def test_keybindings_use_other_default_issue_447(self):
7171
self.assertEqual(struct.help_key, 'F2')
7272
self.assertEqual(struct.show_source_key, 'F9')
7373

74+
def test_keybindings_unset(self):
75+
struct = self.load_temp_config(textwrap.dedent("""
76+
[keyboard]
77+
help =
78+
"""))
79+
80+
self.assertFalse(struct.help_key)
81+

0 commit comments

Comments
 (0)