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

Skip to content

Commit 10c7cdc

Browse files
NelleVMeeseeksDev[bot]
authored and
MeeseeksDev[bot]
committed
Backport PR #12036: Interactive tests update
1 parent c2c744d commit 10c7cdc

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

lib/matplotlib/tests/test_backends_interactive.py

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,21 @@
1717

1818
def _get_testable_interactive_backends():
1919
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"),
2829
]:
2930
reason = None
3031
if not os.environ.get("DISPLAY"):
3132
reason = "No $DISPLAY"
3233
elif any(importlib.util.find_spec(dep) is None for dep in deps):
3334
reason = "Missing dependency"
34-
elif "wx" in deps and sys.platform == "darwin":
35-
reason = "wx backends known not to work on OSX"
3635
backends.append(pytest.mark.skip(reason=reason)(backend) if reason
3736
else backend)
3837
return backends
@@ -67,9 +66,9 @@ def _get_testable_interactive_backends():
6766
# framework, but can switch to a backend using cairo instead of agg, or a
6867
# non-interactive backend. In the first case, we use tkagg as the "other"
6968
# 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).
7372
7473
if backend != "tkagg":
7574
with assert_raises(ImportError):

0 commit comments

Comments
 (0)