8000 Merge pull request #17811 from meeseeksmachine/auto-backport-of-pr-17… · matplotlib/matplotlib@835348c · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 835348c

Browse files
authored
Merge pull request #17811 from meeseeksmachine/auto-backport-of-pr-17797-on-v3.3.x
Backport PR #17797 on branch v3.3.x (Fix running contour's test_internal_cpp_api directly.)
2 parents 82813ea + 069550f commit 835348c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/tests/test_contour.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,13 @@ def test_contourf_symmetric_locator():
265265
'If mask is set it must be a 2D array with the same dimensions as x.'),
266266
])
267267
def test_internal_cpp_api(args, cls, message): # Github issue 8197.
268+
from matplotlib import _contour # noqa: ensure lazy-loaded module *is* loaded.
268269
with pytest.raises(cls, match=re.escape(message)):
269270
mpl._contour.QuadContourGenerator(*args)
270271

271272

272273
def test_internal_cpp_api_2():
274+
from matplotlib import _contour # noqa: ensure lazy-loaded module *is* loaded.
273275
arr = [[0, 1], [2, 3]]
274276
qcg = mpl._contour.QuadContourGenerator(arr, arr, arr, None, True, 0)
275277
with pytest.raises(

0 commit comments

Comments
 (0)
0