diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2017-11-07 04:34:30 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2017-11-07 04:34:30 +0100 |
| commit | 80a134251e1ea0125e872a91fbc4d3e42c97b341 (patch) | |
| tree | 080f584a0c92e458b12a163217ce4c7ed70c3669 | |
| parent | b449a039ab57c4965bb935a3806d1fe54a6ae811 (diff) | |
s/overriden/overridden/
Add test coverage for that Choice.__repr__() path too.
| -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> """) |
