diff options
author | Florian Bruhin <me@the-compiler.org> | 2019-09-10 12:38:03 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2019-09-10 12:46:47 +0200 |
commit | 4a4624317997ff1bfe7ff3452ef46c70c7d393d3 (patch) | |
tree | 3891ebfe41aca88fd2c4c01b883c5a9803f82fe4 /qutebrowser/keyinput/keyutils.py | |
parent | 1a34f284a95448f1377983ecace1248fcf04bf7e (diff) | |
download | qutebrowser-4a4624317997ff1bfe7ff3452ef46c70c7d393d3.tar.gz qutebrowser-4a4624317997ff1bfe7ff3452ef46c70c7d393d3.zip |
Exclude coverage for AttributeError
On Qt 5.13, all those keys are defined, so this line never gets hit.
(For some reason, this wasn't a problem before moving _SPECIAL_NAMES out of the
function it was in - not sure why...)
Diffstat (limited to 'qutebrowser/keyinput/keyutils.py')
-rw-r--r-- | qutebrowser/keyinput/keyutils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qutebrowser/keyinput/keyutils.py b/qutebrowser/keyinput/keyutils.py index f6ab914ec..ed487c0a6 100644 --- a/qutebrowser/keyinput/keyutils.py +++ b/qutebrowser/keyinput/keyutils.py @@ -140,7 +140,7 @@ def _build_special_names(): for k, v in special_names_str.items(): try: _SPECIAL_NAMES[getattr(Qt, 'Key_' + k)] = v - except AttributeError: + except AttributeError: # pragma: no cover pass _SPECIAL_NAMES[0x0] = 'nil' |