@@ -172,7 +172,7 @@ def test_mismatch_source_target_level_shape(self):
172172
173173 msg = ('Expecting the shape of the source and target levels except '
174174 'the axis of interpolation to be identical. '
175- "\('-', 4, 2\) != \(2, 5, 2\)" )
175+ r "\('-', 4, 2\) != \(2, 5, 2\)" )
176176 with self .assertRaisesRegexp (ValueError , msg ):
177177 bounded_vinterp .interpolate_conservative (target_bounds ,
178178 source_bounds , data ,
@@ -185,7 +185,7 @@ def test_mismatch_between_source_levels_source_data(self):
185185 data = np .zeros ((3 , 4 ))
186186
187187 msg = ('The provided data is not of compatible shape with the '
188- "provided source bounds. \('-', 3, 4\) != \(2, 4\)" )
188+ r "provided source bounds. \('-', 3, 4\) != \(2, 4\)" )
189189 with self .assertRaisesRegexp (ValueError , msg ):
190190 bounded_vinterp .interpolate_conservative (target_bounds ,
191191 source_bounds , data ,
@@ -198,7 +198,7 @@ def test_unexpected_bounds_shape(self):
198198 target_bounds = np .zeros ((4 , 4 , 4 ))
199199 data = np .zeros ((3 , 4 ))
200200
201- msg = 'Unexpected source and target bounds shape. shape\[-1\] != 2'
201+ msg = r 'Unexpected source and target bounds shape. shape\[-1\] != 2'
202202 with self .assertRaisesRegexp (ValueError , msg ):
203203 bounded_vinterp .interpolate_conservative (target_bounds ,
204204 source_bounds , data ,
0 commit comments