@@ -349,17 +349,17 @@ def test_slice_locs_with_interval(self):
349349 with pytest .raises (
350350 KeyError ,
351351 match = re .escape (
352- '"Cannot get left slice bound for non-unique label:'
353- " Interval(0, 2, closed='right')\" "
352+ '"Cannot get left slice bound for non-unique label: '
353+ "Interval(0, 2, closed='right')\" "
354354 ),
355355 ):
356356 index .slice_locs (start = Interval (0 , 2 ), end = Interval (2 , 4 ))
357357
358358 with pytest .raises (
359359 KeyError ,
360360 match = re .escape (
361- '"Cannot get left slice bound for non-unique label:'
362- " Interval(0, 2, closed='right')\" "
361+ '"Cannot get left slice bound for non-unique label: '
362+ "Interval(0, 2, closed='right')\" "
363363 ),
364364 ):
365365 index .slice_locs (start = Interval (0 , 2 ))
@@ -369,17 +369,17 @@ def test_slice_locs_with_interval(self):
369369 with pytest .raises (
370370 KeyError ,
371371 match = re .escape (
372- '"Cannot get right slice bound for non-unique label:'
373- " Interval(0, 2, closed='right')\" "
372+ '"Cannot get right slice bound for non-unique label: '
373+ "Interval(0, 2, closed='right')\" "
374374 ),
375375 ):
376376 index .slice_locs (end = Interval (0 , 2 ))
377377
378378 with pytest .raises (
379379 KeyError ,
380380 match = re .escape (
381- '"Cannot get right slice bound for non-unique label:'
382- " Interval(0, 2, closed='right')\" "
381+ '"Cannot get right slice bound for non-unique label: '
382+ "Interval(0, 2, closed='right')\" "
383383 ),
384384 ):
385385 index .slice_locs (start = Interval (2 , 4 ), end = Interval (0 , 2 ))
@@ -431,8 +431,8 @@ def test_slice_locs_with_ints_and_floats_errors(self, tuples, query):
431431 with pytest .raises (
432432 KeyError ,
433433 match = (
434- "'can only get slices from an IntervalIndex if bounds are"
435- " non-overlapping and all monotonic increasing or decreasing'"
434+ "'can only get slices from an IntervalIndex if bounds are "
435+ "non-overlapping and all monotonic increasing or decreasing'"
436436 ),
437437 ):
438438 index .slice_locs (start , stop )
0 commit comments