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