Fix tests for parsing KeySequences

This commit is contained in:
Florian Bruhin 2018-02-27 14:10:55 +01:00
parent b85fe8f678
commit 49d297f7bf

View File

@ -110,8 +110,8 @@ class TestKeyEventToString:
('xyz', keyutils.KeySequence(Qt.Key_X, Qt.Key_Y, Qt.Key_Z)),
('<Control-x><Meta-y>', keyutils.KeySequence(Qt.ControlModifier | Qt.Key_X,
Qt.MetaModifier | Qt.Key_Y)),
# FIXME
# ('<Ctrl-x>, <Ctrl-y>', keyutils.KeyParseError),
('<blub>', keyutils.KeyParseError),
('\U00010000', keyutils.KeyParseError),
])
def test_parse(keystr, expected):
if expected is keyutils.KeyParseError: