@@ -244,33 +244,6 @@ def test_contourf_symmetric_locator():
244
244
assert_array_almost_equal (cs .levels , np .linspace (- 12 , 12 , 5 ))
245
245
246
246
247
- @pytest .mark .parametrize ("args, cls, message" , [
248
- ((), TypeError ,
249
- 'function takes exactly 6 arguments (0 given)' ),
250
- ((1 , 2 , 3 , 4 , 5 , 6 ), ValueError ,
251
- 'Expected 2-dimensional array, got 0' ),
252
- (([[0 ]], [[0 ]], [[]], None , True , 0 ), ValueError ,
253
- 'x, y and z must all be 2D arrays with the same dimensions' ),
254
- (([[0 ]], [[0 ]], [[0 ]], None , True , 0 ), ValueError ,
255
- 'x, y and z must all be at least 2x2 arrays' ),
256
- ((* [np .arange (4 ).reshape ((2 , 2 ))] * 3 , [[0 ]], True , 0 ), ValueError ,
257
- 'If mask is set it must be a 2D array with the same dimensions as x.' ),
258
- ])
259
- def test_internal_cpp_api (args , cls , message ): # Github issue 8197.
260
- from matplotlib import _contour # noqa: ensure lazy-loaded module *is* loaded.
261
- with pytest .raises (cls , match = re .escape (message )):
262
- mpl ._contour .QuadContourGenerator (* args )
263
-
264
-
265
- def test_internal_cpp_api_2 ():
266
- from matplotlib import _contour # noqa: ensure lazy-loaded module *is* loaded.
267
- arr = [[0 , 1 ], [2 , 3 ]]
268
- qcg = mpl ._contour .QuadContourGenerator (arr , arr , arr , None , True , 0 )
269
- with pytest .raises (
270
- ValueError , match = r'filled contour levels must be increasing' ):
271
- qcg .create_filled_contour (1 , 0 )
272
-
273
-
274
247
def test_circular_contour_warning ():
275
248
# Check that almost circular contours don't throw a warning
276
249
x , y = np .meshgrid (np .linspace (- 2 , 2 , 4 ), np .linspace (- 2 , 2 , 4 ))
0 commit comments