@@ -76,6 +76,8 @@ def _raise_on_image_difference(expected, actual, tol):
76
76
mplcairo .base .GraphicsContextRendererCairo
77
77
mpl .backends .backend_agg = \
78
78
sys .modules ["matplotlib.backends.backend_agg" ] = mplcairo .base
79
+ mpl .backend_bases ._default_backends = {
80
+ k : "mplcairo.base" for k in mpl .backend_bases ._default_backends }
79
81
80
82
with warnings .catch_warnings (record = True ): # mpl 3.0
81
83
mpl .use ("agg" , force = True )
@@ -165,6 +167,9 @@ def pytest_collection_modifyitems(session, config, items):
165
167
"test_backend_ps.py::test_colorbar_shift[" ,
166
168
# cairo doesn't support setting fonttype.
167
169
"test_backend_ps.py::test_fonttype[" ,
170
+ # FIXME[Upstream]: Test is not precise enough re: name reuse
171
+ # due to cairo's font subsetting approach.
172
+ "test_backend_ps.py::test_no_duplicate_definition" ,
168
173
# We're fine with partial usetex.
169
174
"test_backend_ps.py::test_partial_usetex" ,
170
175
# We do not support writing PS to text-mode streams.
@@ -194,12 +199,16 @@ def pytest_collection_modifyitems(session, config, items):
194
199
"test_backend_svg.py::test_svg_incorrect_metadata[" ,
195
200
"test_backend_svg.py::test_svg_metadata" ,
196
201
"test_backend_svg.py::test_svgid" ,
202
+ "test_figure.py::test_not_visible_figure" ,
197
203
# cairo always emits text as glyph paths.
198
204
"test_backend_svg.py::test_svgnone_with_data_coordinates" ,
199
205
# cairo can't emit urls in SVG.
200
206
"test_backend_svg.py::test_text_urls" ,
201
207
"test_backend_svg.py::test_url" ,
202
208
"test_backend_svg.py::test_url_tick" ,
209
+ # cairo elides fully-clipped artists
210
+ # FIXME[Upstream]: clip paths in test should be fixed.
211
+ "test_backend_svg.py::test_clip_path_ids_reuse" ,
203
212
# Different tight bbox.
204
213
"test_bbox_tight.py::test_bbox_inches_tight_suptile_legend[" ,
205
214
"test_bbox_tight.py::test_bbox_inches_tight_suptitle_non_default[" ,
0 commit comments