Fix modifier tests on OS X

This commit is contained in:
Florian Bruhin 2014-09-26 07:14:44 +02:00
parent 99da7b697b
commit 27117246b7

View File

@ -504,8 +504,12 @@ class KeyEventToStringTests(unittest.TestCase):
evt = helpers.fake_keyevent(
key=Qt.Key_A, modifiers=(Qt.ControlModifier | Qt.AltModifier |
Qt.MetaModifier | Qt.ShiftModifier))
self.assertEqual(utils.keyevent_to_string(evt),
'Ctrl+Alt+Meta+Shift+A')
if sys.platform == 'darwin':
self.assertEqual(utils.keyevent_to_string(evt),
'Ctrl+Alt+Shift+A')
else:
self.assertEqual(utils.keyevent_to_string(evt),
'Ctrl+Alt+Meta+Shift+A')
class NormalizeTests(unittest.TestCase):