8000 Use Agg backend in pickle test subprocess · matplotlib/matplotlib@4bb4dc7 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 4bb4dc7

Browse files
committed
Use Agg backend in pickle test subprocess
The main parent process is using Agg, so the subprocess should as well, to be able to unpickle correctly.
1 parent 5fb45b8 commit 4bb4dc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/tests/test_pickle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def test_pickle_load_from_subprocess(fig_test, fig_ref, tmp_path):
143143
proc = subprocess_run_helper(
144144
_pickle_load_subprocess,
145145
timeout=60,
146-
extra_env={'PICKLE_FILE_PATH': str(fp)}
146+
extra_env={'PICKLE_FILE_PATH': str(fp), 'MPLBACKEND': 'Agg'}
147147
)
148148

149149
loaded_fig = pickle.loads(ast.literal_eval(proc.stdout))

0 commit comments

Comments
 (0)
0