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

Skip to content

Commit 9b0f272

Browse files
committed
Reformatting/rewording.
1 parent 1ae426e commit 9b0f272

1 file changed

Lines changed: 12 additions & 11 deletions

File tree

lib/matplotlib/tests/test_backends_interactive.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@
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", "cairocffi"], "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"):
@@ -67,9 +68,9 @@ def _get_testable_interactive_backends():
6768
# framework, but can switch to a backend using cairo instead of agg, or a
6869
# non-interactive backend. In the first case, we use tkagg as the "other"
6970
# 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.
71+
# Moreover, don't test switching away from gtk3 (as Gtk.main_level() is
72+
# not set up at this point yet) and webagg (which uses no interactive
73+
# framework).
7374
7475
if backend != "tkagg":
7576
with assert_raises(ImportError):

0 commit comments

Comments
 (0)