8000 Merge pull request #17797 from QuLogic/internal-test · matplotlib/matplotlib@87c28e3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 87c28e3

Browse files
authored
Merge pull request #17797 from QuLogic/internal-test
TST: Fix running contour's test_internal_cpp_api directly.
2 parents 9f78b84 + ed02965 commit 87c28e3

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