Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG : fix failing test on 3.2 #2751

Merged
merged 1 commit into from Jan 22, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 8 additions & 8 deletions lib/matplotlib/tests/test_backend_qt4.py
Expand Up @@ -77,23 +77,23 @@ def receive(event):
def test_shift():
assert_correct_key(QtCore.Qt.Key_A,
ShiftModifier,
u'A')
'A')


@cleanup
@knownfailureif(not HAS_QT)
def test_lower():
assert_correct_key(QtCore.Qt.Key_A,
QtCore.Qt.NoModifier,
u'a')
'a')


@cleanup
@knownfailureif(not HAS_QT)
def test_control():
assert_correct_key(QtCore.Qt.Key_A,
ControlModifier,
u'ctrl+a')
'ctrl+a')


@cleanup
Expand All @@ -117,39 +117,39 @@ def test_unicode_lower():
def test_alt_control():
assert_correct_key(ControlKey,
AltModifier,
u'alt+control')
'alt+control')


@cleanup
@knownfailureif(not HAS_QT)
def test_control_alt():
assert_correct_key(AltKey,
ControlModifier,
u'ctrl+alt')
'ctrl+alt')


@cleanup
@knownfailureif(not HAS_QT)
def test_modifier_order():
assert_correct_key(QtCore.Qt.Key_Aacute,
(ControlModifier | AltModifier | SuperModifier),
u'ctrl+alt+super+' + unichr(225))
'ctrl+alt+super+' + unichr(225))


@cleanup
@knownfailureif(not HAS_QT)
def test_backspace():
assert_correct_key(QtCore.Qt.Key_Backspace,
QtCore.Qt.NoModifier,
u'backspace')
'backspace')


@cleanup
@knownfailureif(not HAS_QT)
def test_backspace_mod():
assert_correct_key(QtCore.Qt.Key_Backspace,
ControlModifier,
u'ctrl+backspace')
'ctrl+backspace')


@cleanup
Expand Down