TST Replace pytest.warns(None) in tests/test_common.py
@@ -367,7 +367,7 @@ column_name_estimators = list(
def test_pandas_column_name_consistency(estimator):
_set_checking_parameters(estimator)
with ignore_warnings(category=(FutureWarning)):
- with pytest.warns(None) as record:
+ with warnings.catch_warnings(record=True) as record:
check_dataframe_column_names_consistency(
estimator.__class__.__name__, estimator
)
