Make sure Delete is a special key mapping.
Otherwise formatting shortcut may fail on some shortcuts.
(Found while working on the action-manager, I'm not too sure which
action)
@@ -36,7 +36,7 @@ def test_ReadOnlyWrapper_setattr():
)
def test_shortcut_invalid(shortcut, reason):
- with pytest.raises(AssertionError):
+ with pytest.warns(UserWarning):
Shortcut(shortcut) # Should be Control-A
