File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +13
-4
lines changed
Original file line number Diff line number Diff line change @@ -143,6 +143,10 @@ install:
143
143
python -c 'import PyQt5.QtCore' &&
144
144
echo 'PyQt5 is available' ||
145
145
echo 'PyQt5 is not available'
146
+ python -mpip install --upgrade pyside2 &&
147
+ python -c 'import PySide2.QtCore' &&
148
+ echo 'PySide2 is available' ||
149
+ echo 'PySide2 is not available'
146
150
python -mpip install --upgrade \
147
151
-f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-14.04 \
148
152
wxPython &&
Original file line number Diff line number Diff line change @@ -23,18 +23,23 @@ def _get_testable_interactive_backends():
23
23
(["cairo" , "gi" ], "gtk3cairo" ),
24
24
(["PyQt5" ], "qt5agg" ),
25
25
(["PyQt5" , "cairocffi" ], "qt5cairo" ),
26
+ (["PySide2" ], "qt5agg" ),
27
+ (["PySide2" , "cairocffi" ], "qt5cairo" ),
26
28
(["tkinter" ], "tkagg" ),
27
29
(["wx" ], "wx" ),
28
30
(["wx" ], "wxagg" ),
29
31
]:
30
32
reason = None
33
+ missing = [dep for dep in deps if not importlib .util .find_spec (dep )]
31
34
if not os .environ .get ("DISPLAY" ):
32
- reason = "No $DISPLAY"
33
- elif any ( importlib . util . find_spec ( dep ) is None for dep in deps ) :
34
- reason = "Missing dependency"
35
+ reason = "$DISPLAY is unset "
36
+ elif missing :
37
+ reason = "{} cannot be imported" . format ( ", " . join ( missing ))
35
38
if reason :
36
39
backend = pytest .param (
37
- backend , marks = pytest .mark .skip (reason = reason ))
40
+ backend ,
41
+ marks = pytest .mark .skip (
42
+ reason = f"Skipping { backend } because { reason } " ))
38
43
backends .append (backend )
39
44
return backends
40
45
You can’t perform that action at this time.
0 commit comments