summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authoruser202729 <25191436+user202729@users.noreply.github.com>2019-04-24 13:59:04 +0700
committeruser202729 <25191436+user202729@users.noreply.github.com>2019-04-24 13:59:04 +0700
commit60a52baaa622fd4ecda70bfa3fd25b4c418c69fc (patch)
tree05480cbdaf9466976305e621e613e4e4dbfe6b86 /tests
parentca215839d23e6f04c4c9a8c73c66bdef05289ce9 (diff)
downloadqutebrowser-60a52baaa622fd4ecda70bfa3fd25b4c418c69fc.tar.gz
qutebrowser-60a52baaa622fd4ecda70bfa3fd25b4c418c69fc.zip
Fix wrong test for keyutils.is_printable
According to is_special documentation, (Qt.Key,2, Qt.KeypadModifier) should return True because it requires special representation <num-2>
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/keyinput/test_keyutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/keyinput/test_keyutils.py b/tests/unit/keyinput/test_keyutils.py
index 8156c89ae..38d4ef368 100644
--- a/tests/unit/keyinput/test_keyutils.py
+++ b/tests/unit/keyinput/test_keyutils.py
@@ -520,7 +520,7 @@ def test_is_printable(key, printable):
(Qt.Key_Escape, Qt.ControlModifier, True),
(Qt.Key_X, Qt.ControlModifier, True),
(Qt.Key_X, Qt.NoModifier, False),
- (Qt.Key_2, Qt.KeypadModifier, False),
+ (Qt.Key_2, Qt.KeypadModifier, True),
(Qt.Key_2, Qt.NoModifier, False),
])
def test_is_special(key, modifiers, special):