Fix tests on OS X.

This commit is contained in:
Florian Bruhin 2015-05-17 18:52:25 +02:00
parent e24d2e1b8c
commit a9f5d45c34

View File

@ -19,7 +19,6 @@
"""Tests for qutebrowser.utils.utils."""
import sys
import enum
import datetime
import os.path
@ -320,10 +319,7 @@ class TestKeyEventToString:
evt = fake_keyevent_factory(
key=Qt.Key_A, modifiers=(Qt.ControlModifier | Qt.AltModifier |
Qt.MetaModifier | Qt.ShiftModifier))
if sys.platform == 'darwin':
assert utils.keyevent_to_string(evt) == 'Ctrl+Alt+Shift+A'
else:
assert utils.keyevent_to_string(evt) == 'Ctrl+Alt+Meta+Shift+A'
assert utils.keyevent_to_string(evt) == 'Ctrl+Alt+Meta+Shift+A'
class TestNormalize: