|
40 | 40 |
|
41 | 41 |
|
42 | 42 | @cleanup
|
43 |
| -@pytest.mark.xfail(not HAS_QT) |
| 43 | +@pytest.mark.xfail(not HAS_QT, reason='pyqt version 4 not installed') |
44 | 44 | @switch_backend('Qt4Agg')
|
45 | 45 | def test_fig_close():
|
46 | 46 | # save the state of Gcf.figs
|
@@ -81,87 +81,87 @@ def receive(event):
|
81 | 81 |
|
82 | 82 |
|
83 | 83 | @cleanup
|
84 |
| -@pytest.mark.xfail(not HAS_QT) |
| 84 | +@pytest.mark.xfail(not HAS_QT, reason='pyqt version 4 not installed') |
85 | 85 | def test_shift():
|
86 | 86 | assert_correct_key(QtCore.Qt.Key_A,
|
87 | 87 | ShiftModifier,
|
88 | 88 | 'A')
|
89 | 89 |
|
90 | 90 |
|
91 | 91 | @cleanup
|
92 |
| -@pytest.mark.xfail(not HAS_QT) |
| 92 | +@pytest.mark.xfail(not HAS_QT, reason='pyqt version 4 not installed') |
93 | 93 | def test_lower():
|
94 | 94 | assert_correct_key(QtCore.Qt.Key_A,
|
95 | 95 | QtCore.Qt.NoModifier,
|
96 | 96 | 'a')
|
97 | 97 |
|
98 | 98 |
|
99 | 99 | @cleanup
|
100 |
| -@pytest.mark.xfail(not HAS_QT) |
| 100 | +@pytest.mark.xfail(not HAS_QT, reason='pyqt version 4 not installed') |
101 | 101 | def test_control():
|
102 | 102 | assert_correct_key(QtCore.Qt.Key_A,
|
103 | 103 | ControlModifier,
|
104 | 104 | 'ctrl+a')
|
105 | 105 |
|
106 | 106 |
|
107 | 107 | @cleanup
|
108 |
| -@pytest.mark.xfail(not HAS_QT) |
| 108 | +@pytest.mark.xfail(not HAS_QT, reason='pyqt version 4 not installed') |
109 | 109 | def test_unicode_upper():
|
110 | 110 | assert_correct_key(QtCore.Qt.Key_Aacute,
|
111 | 111 | ShiftModifier,
|
112 | 112 | unichr(193))
|
113 | 113 |
|
114 | 114 |
|
115 | 115 | @cleanup
|
116 |
| -@pytest.mark.xfail(not HAS_QT) |
| 116 | +@pytest.mark.xfail(not HAS_QT, reason='pyqt version 4 not installed') |
117 | 117 | def test_unicode_lower():
|
118 | 118 | assert_correct_key(QtCore.Qt.Key_Aacute,
|
119 | 119 | QtCore.Qt.NoModifier,
|
120 | 120 | unichr(225))
|
121 | 121 |
|
122 | 122 |
|
123 | 123 | @cleanup
|
124 |
| -@pytest.mark.xfail(not HAS_QT) |
| 124 | +@pytest.mark.xfail(not HAS_QT, reason='pyqt version 4 not installed') |
125 | 125 | def test_alt_control():
|
126 | 126 | assert_correct_key(ControlKey,
|
127 | 127 | AltModifier,
|
128 | 128 | 'alt+control')
|
129 | 129 |
|
130 | 130 |
|
131 | 131 | @cleanup
|
132 |
| -@pytest.mark.xfail(not HAS_QT) |
| 132 | +@pytest.mark.xfail(not HAS_QT, reason='pyqt version 4 not installed') |
133 | 133 | def test_control_alt():
|
134 | 134 | assert_correct_key(AltKey,
|
135 | 135 | ControlModifier,
|
136 | 136 | 'ctrl+alt')
|
137 | 137 |
|
138 | 138 |
|
139 | 139 | @cleanup
|
140 |
| -@pytest.mark.xfail(not HAS_QT) |
| 140 | +@pytest.mark.xfail(not HAS_QT, reason='pyqt version 4 not installed') |
141 | 141 | def test_modifier_order():
|
142 | 142 | assert_correct_key(QtCore.Qt.Key_Aacute,
|
143 | 143 | (ControlModifier | AltModifier | SuperModifier),
|
144 | 144 | 'ctrl+alt+super+' + unichr(225))
|
145 | 145 |
|
146 | 146 |
|
147 | 147 | @cleanup
|
148 |
| -@pytest.mark.xfail(not HAS_QT) |
| 148 | +@pytest.mark.xfail(not HAS_QT, reason='pyqt version 4 not installed') |
149 | 149 | def test_backspace():
|
150 | 150 | assert_correct_key(QtCore.Qt.Key_Backspace,
|
151 | 151 | QtCore.Qt.NoModifier,
|
152 | 152 | 'backspace')
|
153 | 153 |
|
154 | 154 |
|
155 | 155 | @cleanup
|
156 |
| -@pytest.mark.xfail(not HAS_QT) |
| 156 | +@pytest.mark.xfail(not HAS_QT, reason='pyqt version 4 not installed') |
157 | 157 | def test_backspace_mod():
|
158 | 158 | assert_correct_key(QtCore.Qt.Key_Backspace,
|
159 | 159 | ControlModifier,
|
160 | 160 | 'ctrl+backspace')
|
161 | 161 |
|
162 | 162 |
|
163 | 163 | @cleanup
|
164 |
| -@pytest.mark.xfail(not HAS_QT) |
| 164 | +@pytest.mark.xfail(not HAS_QT, reason='pyqt version 4 not installed') |
165 | 165 | def test_non_unicode_key():
|
166 | 166 | assert_correct_key(QtCore.Qt.Key_Play,
|
167 | 167 | QtCore.Qt.NoModifier,
|
|
0 commit comments