@@ -349,17 +349,17 @@ def test_slice_locs_with_interval(self):
349
349
with pytest .raises (
350
350
KeyError ,
351
351
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')\" "
354
354
),
355
355
):
356
356
index .slice_locs (start = Interval (0 , 2 ), end = Interval (2 , 4 ))
357
357
358
358
with pytest .raises (
359
359
KeyError ,
360
360
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')\" "
363
363
),
364
364
):
365
365
index .slice_locs (start = Interval (0 , 2 ))
@@ -369,17 +369,17 @@ def test_slice_locs_with_interval(self):
369
369
with pytest .raises (
370
370
KeyError ,
371
371
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')\" "
374
374
),
375
375
):
376
376
index .slice_locs (end = Interval (0 , 2 ))
377
377
378
378
with pytest .raises (
379
379
KeyError ,
380
380
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')\" "
383
383
),
384
384
):
385
385
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):
431
431
with pytest .raises (
432
432
KeyError ,
433
433
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'"
436
436
),
437
437
):
438
438
index .slice_locs (start , stop )
0 commit comments