Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fcdb600

Browse files
committed
Merge pull request #2751 from tacaswell/test_qt4_unicodefix
BUG : fix failing test on 3.2
2 parents 6e7ba32 + d1675a2 commit fcdb600

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/matplotlib/tests/test_backend_qt4.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,23 +77,23 @@ def receive(event):
7777
def test_shift():
7878
assert_correct_key(QtCore.Qt.Key_A,
7979
ShiftModifier,
80-
u'A')
80+
'A')
8181

8282

8383
@cleanup
8484
@knownfailureif(not HAS_QT)
8585
def test_lower():
8686
assert_correct_key(QtCore.Qt.Key_A,
8787
QtCore.Qt.NoModifier,
88-
u'a')
88+
'a')
8989

9090

9191
@cleanup
9292
@knownfailureif(not HAS_QT)
9393
def test_control():
9494
assert_correct_key(QtCore.Qt.Key_A,
9595
ControlModifier,
96-
u'ctrl+a')
96+
'ctrl+a')
9797

9898

9999
@cleanup
@@ -117,39 +117,39 @@ def test_unicode_lower():
117117
def test_alt_control():
118118
assert_correct_key(ControlKey,
119119
AltModifier,
120-
u'alt+control')
120+
'alt+control')
121121

122122

123123
@cleanup
124124
@knownfailureif(not HAS_QT)
125125
def test_control_alt():
126126
assert_correct_key(AltKey,
127127
ControlModifier,
128-
u'ctrl+alt')
128+
'ctrl+alt')
129129

130130

131131
@cleanup
132132
@knownfailureif(not HAS_QT)
133133
def test_modifier_order():
134134
assert_correct_key(QtCore.Qt.Key_Aacute,
135135
(ControlModifier | AltModifier | SuperModifier),
136-
u'ctrl+alt+super+' + unichr(225))
136+
'ctrl+alt+super+' + unichr(225))
137137

138138

139139
@cleanup
140140
@knownfailureif(not HAS_QT)
141141
def test_backspace():
142142
assert_correct_key(QtCore.Qt.Key_Backspace,
143143
QtCore.Qt.NoModifier,
144-
u'backspace')
144+
'backspace')
145145

146146

147147
@cleanup
148148
@knownfailureif(not HAS_QT)
149149
def test_backspace_mod():
150150
assert_correct_key(QtCore.Qt.Key_Backspace,
151151
ControlModifier,
152-
u'ctrl+backspace')
152+
'ctrl+backspace')
153153

154154

155155
@cleanup

0 commit comments

Comments
 (0)