Skip to content

Commit c6394d7

Browse files
committed
TST: Force Agg backend in test_openin_any_paranoid
On some CI, the Qt backend seems to be picked, but something is confused and it fails due to an invalid `DISPLAY` variable. But this test doesn't need an interactive backend, so don't use one.
1 parent 01cfcb0 commit c6394d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/tests/test_texmanager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,6 @@ def test_openin_any_paranoid():
7171
'plt.rcParams.update({"text.usetex": True});'
7272
'plt.title("paranoid");'
7373
'plt.show(block=False);'],
74-
env={**os.environ, 'openin_any': 'p'}, check=True, capture_output=True)
74+
env={**os.environ, 'MPLBACKEND': 'Agg', 'openin_any': 'p'},
75+
check=True, capture_output=True)
7576
assert completed.stderr == ""

0 commit comments

Comments
 (0)