diff options
| -rw-r--r-- | kconfiglib.py | 2 | ||||
| -rw-r--r-- | testsuite.py | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index 4d008c9..9a2fdb2 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -3160,7 +3160,7 @@ class Choice(object): .format(self.user_selection.name) if self.selection is not self.user_selection: - user_sel_str += " (overriden)" + user_sel_str += " (overridden)" fields.append(user_sel_str) diff --git a/testsuite.py b/testsuite.py index f2a4eb7..90efc3d 100644 --- a/testsuite.py +++ b/testsuite.py @@ -618,6 +618,12 @@ choice <choice CHOICE, tristate, "choice", mode y, user mode y, CHOICE_2 selected, CHOICE_2 selected by user, visibility y, Kconfiglib/tests/Krepr:30> """) + c.named_choices["CHOICE"].set_value(1) + + verify_repr(c.named_choices["CHOICE"], """ +<choice CHOICE, tristate, "choice", mode m, user mode m, CHOICE_2 selected by user (overridden), visibility y, Kconfiglib/tests/Krepr:30> +""") + verify_repr(c.syms["CHOICE_HOOK"].nodes[0].next.item, """ <choice, tristate, "optional choice", mode n, visibility n, optional, Kconfiglib/tests/Krepr:43> """) |
