|
17 | 17 |
|
18 | 18 | def _get_testable_interactive_backends():
|
19 | 19 | backends = []
|
20 |
| - # gtk3agg fails on Travis, needs to be investigated. |
21 |
| - for deps, backend in [ # (["cairocffi", "pgi"], "gtk3agg"), |
22 |
| - (["cairocffi", "pgi"], "gtk3cairo"), |
23 |
| - (["PyQt5"], "qt5agg"), |
24 |
| - (["PyQt5", "cariocffi"], "qt5cairo"), |
25 |
| - (["tkinter"], "tkagg"), |
26 |
| - (["wx"], "wx"), |
27 |
| - (["wx"], "wxagg") |
| 20 | + for deps, backend in [ |
| 21 | + # gtk3agg fails on Travis, needs to be investigated. |
| 22 | + # (["cairocffi", "pgi"], "gtk3agg"), |
| 23 | + (["cairocffi", "pgi"], "gtk3cairo"), |
| 24 | + (["PyQt5"], "qt5agg"), |
| 25 | + (["PyQt5", "cairocffi"], "qt5cairo"), |
| 26 | + (["tkinter"], "tkagg"), |
| 27 | + (["wx"], "wx"), |
| 28 | + (["wx"], "wxagg"), |
28 | 29 | ]:
|
29 | 30 | reason = None
|
30 | 31 | if not os.environ.get("DISPLAY"):
|
31 | 32 | reason = "No $DISPLAY"
|
32 | 33 | elif any(importlib.util.find_spec(dep) is None for dep in deps):
|
33 | 34 | reason = "Missing dependency"
|
34 |
| - elif "wx" in deps and sys.platform == "darwin": |
35 |
| - reason = "wx backends known not to work on OSX" |
36 | 35 | backends.append(pytest.mark.skip(reason=reason)(backend) if reason
|
37 | 36 | else backend)
|
38 | 37 | return backends
|
@@ -67,9 +66,9 @@ def _get_testable_interactive_backends():
|
67 | 66 | # framework, but can switch to a backend using cairo instead of agg, or a
|
68 | 67 | # non-interactive backend. In the first case, we use tkagg as the "other"
|
69 | 68 | # interactive backend as it is (essentially) guaranteed to be present.
|
70 |
| - # Moreover, don't test switching away from gtk3 as Gtk.main_level() is |
71 |
| - # not set up at this point yet, and webagg, which uses no interactive |
72 |
| - # framework. |
| 69 | + # Moreover, don't test switching away from gtk3 (as Gtk.main_level() is |
| 70 | + # not set up at this point yet) and webagg (which uses no interactive |
| 71 | + # framework). |
73 | 72 |
|
74 | 73 | if backend != "tkagg":
|
75 | 74 | with assert_raises(ImportError):
|
|
0 commit comments