@@ -1124,17 +1124,18 @@ def test_tricontour_non_finite_z():
11241124 triang = mtri .Triangulation (x , y )
11251125 plt .figure ()
11261126
1127- with pytest .raises (ValueError , match = 'z array cannot contain non-finite ' +
1128- 'values' ):
1127+ with pytest .raises (ValueError , match = 'z array must not contain non-finite '
1128+ 'values within the triangulation ' ):
11291129 plt .tricontourf (triang , [0 , 1 , 2 , np .inf ])
11301130
1131- with pytest .raises (ValueError , match = 'z array cannot contain non-finite ' +
1132- 'values' ):
1131+ with pytest .raises (ValueError , match = 'z array must not contain non-finite '
1132+ 'values within the triangulation ' ):
11331133 plt .tricontourf (triang , [0 , 1 , 2 , - np .inf ])
11341134
1135- with pytest .raises (ValueError , match = 'z array cannot contain non-finite ' +
1136- 'values' ):
1135+ with pytest .raises (ValueError , match = 'z array must not contain non-finite '
1136+ 'values within the triangulation ' ):
11371137 plt .tricontourf (triang , [0 , 1 , 2 , np .nan ])
11381138
1139- with pytest .raises (ValueError , match = 'z cannot be a masked array' ):
1139+ with pytest .raises (ValueError , match = 'z must not contain masked points '
1140+ 'within the triangulation' ):
11401141 plt .tricontourf (triang , np .ma .array ([0 , 1 , 2 , 3 ], mask = [1 , 0 , 0 , 0 ]))
0 commit comments