@@ -343,7 +343,7 @@ def test_multiple_date_col(all_parsers, keep_date_col, request):
343
343
"names" : ["X0" , "X1" , "X2" , "X3" , "X4" , "X5" , "X6" , "X7" , "X8" ],
344
344
}
345
345
with tm .assert_produces_warning (
346
- ( DeprecationWarning , FutureWarning ) , match = depr_msg , check_stacklevel = False
346
+ FutureWarning , match = depr_msg , check_stacklevel = False
347
347
):
348
348
result = parser .read_csv (StringIO (data ), ** kwds )
349
349
@@ -724,7 +724,7 @@ def test_multiple_date_col_name_collision(all_parsers, data, parse_dates, msg):
724
724
)
725
725
with pytest .raises (ValueError , match = msg ):
726
726
with tm .assert_produces_warning (
727
- ( FutureWarning , DeprecationWarning ) , match = depr_msg , check_stacklevel = False
727
+ FutureWarning , match = depr_msg , check_stacklevel = False
728
728
):
729
729
parser .read_csv (StringIO (data ), parse_dates = parse_dates )
730
730
@@ -1248,14 +1248,14 @@ def test_multiple_date_col_named_index_compat(all_parsers):
1248
1248
"Support for nested sequences for 'parse_dates' in pd.read_csv is deprecated"
1249
1249
)
1250
1250
with tm .assert_produces_warning (
1251
- ( FutureWarning , DeprecationWarning ) , match = depr_msg , check_stacklevel = False
1251
+ FutureWarning , match = depr_msg , check_stacklevel = False
1252
1252
):
1253
1253
with_indices = parser .read_csv (
1254
1254
StringIO (data ), parse_dates = {"nominal" : [1 , 2 ]}, index_col = "nominal"
1255
1255
)
1256
1256
1257
1257
with tm .assert_produces_warning (
1258
- ( FutureWarning , DeprecationWarning ) , match = depr_msg , check_stacklevel = False
1258
+ FutureWarning , match = depr_msg , check_stacklevel = False
1259
1259
):
1260
1260
with_names = parser .read_csv (
1261
1261
StringIO (data ),
@@ -1280,13 +1280,13 @@ def test_multiple_date_col_multiple_index_compat(all_parsers):
1280
1280
"Support for nested sequences for 'parse_dates' in pd.read_csv is deprecated"
1281
1281
)
1282
1282
with tm .assert_produces_warning (
1283
- ( FutureWarning , DeprecationWarning ) , match = depr_msg , check_stacklevel = False
1283
+ FutureWarning , match = depr_msg , check_stacklevel = False
1284
1284
):
1285
1285
result = parser .read_csv (
1286
1286
StringIO (data ), index_col = ["nominal" , "ID" ], parse_dates = {"nominal" : [1 , 2 ]}
1287
1287
)
1288
1288
with tm .assert_produces_warning (
1289
- ( FutureWarning , DeprecationWarning ) , match = depr_msg , check_stacklevel = False
1289
+ FutureWarning , match = depr_msg , check_stacklevel = False
1290
1290
):
1291
1291
expected = parser .read_csv (StringIO (data ), parse_dates = {"nominal" : [1 , 2 ]})
1292
1292
@@ -2267,7 +2267,7 @@ def test_parse_dates_dict_format_two_columns(all_parsers, key, parse_dates):
2267
2267
"Support for nested sequences for 'parse_dates' in pd.read_csv is deprecated"
2268
2268
)
2269
2269
with tm .assert_produces_warning (
2270
- ( FutureWarning , DeprecationWarning ) , match = depr_msg , check_stacklevel = False
2270
+ FutureWarning , match = depr_msg , check_stacklevel = False
2271
2271
):
2272
2272
result = parser .read_csv (
2273
2273
StringIO (data ), date_format = {key : "%d- %m-%Y" }, parse_dates = parse_dates
0 commit comments