Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b2087dd

Browse filesBrowse files
committed
TST: pass force to mpl.use
To actually make it change backends. This change is required because I reverted some of the more aggressive changes to `mpl.use` (to effectively default to force=True).
1 parent d5576e2 commit b2087dd
Copy full SHA for b2087dd

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎lib/matplotlib/tests/test_backends_interactive.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_backends_interactive.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def _get_testable_interactive_backends():
7474
mpl.use("tkagg")
7575
7676
def check_alt_backend(alt_backend):
77-
mpl.use(alt_backend)
77+
mpl.use(alt_backend, force=True)
7878
fig = plt.figure()
7979
assert_equal(
8080
type(fig.canvas).__module__,
@@ -84,7 +84,7 @@ def check_alt_backend(alt_backend):
8484
check_alt_backend(backend[:-3] + "cairo")
8585
check_alt_backend("svg")
8686
87-
mpl.use(backend)
87+
mpl.use(backend, force=True)
8888
8989
fig, ax = plt.subplots()
9090
assert_equal(

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.