@@ -906,7 +906,7 @@ def test_extractall_single_single_nocase(dtype) -> None:
906
906
pat_re : str | bytes = (
907
907
pat_str if dtype == np .str_ else bytes (pat_str , encoding = "UTF-8" )
908
908
)
909
- pat_compiled = re .compile (pat_re , flags = re .I )
909
+ pat_compiled = re .compile (pat_re , flags = re .IGNORECASE )
910
910
911
911
value = xr .DataArray (
912
912
[["a_Xy_0" , "ab_xY_10" , "abc_Xy_01" ], ["abcd_Xy_" , "" , "abcdef_Xy_101" ]],
@@ -981,7 +981,7 @@ def test_extractall_single_multi_nocase(dtype) -> None:
981
981
pat_re : str | bytes = (
982
982
pat_str if dtype == np .str_ else bytes (pat_str , encoding = "UTF-8" )
983
983
)
984
- pat_compiled = re .compile (pat_re , flags = re .I )
984
+ pat_compiled = re .compile (pat_re , flags = re .IGNORECASE )
985
985
986
986
value = xr .DataArray (
987
987
[
@@ -1063,7 +1063,7 @@ def test_extractall_multi_single_nocase(dtype) -> None:
1063
1063
pat_re : str | bytes = (
1064
1064
pat_str if dtype == np .str_ else bytes (pat_str , encoding = "UTF-8" )
1065
1065
)
1066
- pat_compiled = re .compile (pat_re , flags = re .I )
1066
+ pat_compiled = re .compile (pat_re , flags = re .IGNORECASE )
1067
1067
1068
1068
value = xr .DataArray (
1069
1069
[["a_Xy_0" , "ab_xY_10" , "abc_Xy_01" ], ["abcd_Xy_" , "" , "abcdef_Xy_101" ]],
@@ -1145,7 +1145,7 @@ def test_extractall_multi_multi_nocase(dtype) -> None:
1145
1145
pat_re : str | bytes = (
1146
1146
pat_str if dtype == np .str_ else bytes (pat_str , encoding = "UTF-8" )
1147
1147
)
1148
- pat_compiled = re .compile (pat_re , flags = re .I )
1148
+ pat_compiled = re .compile (pat_re , flags = re .IGNORECASE )
1149
1149
1150
1150
value = xr .DataArray (
1151
1151
[
@@ -1245,7 +1245,7 @@ def test_findall_single_single_case(dtype) -> None:
1245
1245
1246
1246
def test_findall_single_single_nocase (dtype ) -> None :
1247
1247
pat_str = r"(\w+)_Xy_\d*"
1248
- pat_re = re .compile (dtype (pat_str ), flags = re .I )
1248
+ pat_re = re .compile (dtype (pat_str ), flags = re .IGNORECASE )
1249
1249
1250
1250
value = xr .DataArray (
1251
1251
[["a_Xy_0" , "ab_xY_10" , "abc_Xy_01" ], ["abcd_Xy_" , "" , "abcdef_Xy_101" ]],
@@ -1313,7 +1313,7 @@ def test_findall_single_multi_case(dtype) -> None:
1313
1313
1314
1314
def test_findall_single_multi_nocase (dtype ) -> None :
1315
1315
pat_str = r"(\w+)_Xy_\d*"
1316
- pat_re = re .compile (dtype (pat_str ), flags = re .I )
1316
+ pat_re = re .compile (dtype (pat_str ), flags = re .IGNORECASE )
1317
1317
1318
1318
value = xr .DataArray (
1319
1319
[
@@ -1387,7 +1387,7 @@ def test_findall_multi_single_case(dtype) -> None:
1387
1387
1388
1388
def test_findall_multi_single_nocase (dtype ) -> None :
1389
1389
pat_str = r"(\w+)_Xy_(\d*)"
1390
- pat_re = re .compile (dtype (pat_str ), flags = re .I )
1390
+ pat_re = re .compile (dtype (pat_str ), flags = re .IGNORECASE )
1391
1391
1392
1392
value = xr .DataArray (
1393
1393
[["a_Xy_0" , "ab_xY_10" , "abc_Xy_01" ], ["abcd_Xy_" , "" , "abcdef_Xy_101" ]],
@@ -1463,7 +1463,7 @@ def test_findall_multi_multi_case(dtype) -> None:
1463
1463
1464
1464
def test_findall_multi_multi_nocase (dtype ) -> None :
1465
1465
pat_str = r"(\w+)_Xy_(\d*)"
1466
- pat_re = re .compile (dtype (pat_str ), flags = re .I )
1466
+ pat_re = re .compile (dtype (pat_str ), flags = re .IGNORECASE )
1467
1467
1468
1468
value = xr .DataArray (
1469
1469
[
0 commit comments