diff --git a/python/cudf/cudf/testing/_utils.py b/python/cudf/cudf/testing/_utils.py index fb4a7c05604b..4ea03abe7152 100644 --- a/python/cudf/cudf/testing/_utils.py +++ b/python/cudf/cudf/testing/_utils.py @@ -72,10 +72,10 @@ ] -def set_random_null_mask_inplace(series, null_probability=0.5, seed=None): +def set_random_null_mask_inplace(series, null_probability=0.5): """Randomly nullify elements in series with the provided probability.""" probs = [null_probability, 1 - null_probability] - rng = np.random.default_rng(seed=seed) + rng = np.random.default_rng(seed=0) mask = rng.choice([False, True], size=len(series), p=probs) series.iloc[mask] = None diff --git a/python/cudf/cudf/tests/test_doctests.py b/python/cudf/cudf/tests/test_doctests.py index daaec5bf7a0b..0f0bf449d21f 100644 --- a/python/cudf/cudf/tests/test_doctests.py +++ b/python/cudf/cudf/tests/test_doctests.py @@ -97,9 +97,6 @@ def _find_doctests_in_obj(obj, finder=None, criteria=None): "register_series_accessor": pytest.mark.filterwarnings( "ignore:Attribute .* will be overridden:UserWarning" ), - "StringMethods.edit_distance_matrix": pytest.mark.filterwarnings( - "ignore:edit_distance_matrix:FutureWarning" - ), } diff --git a/python/cudf_polars/tests/conftest.py b/python/cudf_polars/tests/conftest.py index 55f9097c097b..44c31ef4ef7b 100644 --- a/python/cudf_polars/tests/conftest.py +++ b/python/cudf_polars/tests/conftest.py @@ -404,6 +404,7 @@ def pytest_collection_modifyitems( @pytest.fixture(scope="module") -def parquet_stats_executor() -> concurrent.futures.ThreadPoolExecutor: +def parquet_stats_executor() -> concurrent.futures.ThreadPoolExecutor: # type: ignore[misc] """A thread pool to use for cudf-polars status collection.""" - return concurrent.futures.ThreadPoolExecutor() + with concurrent.futures.ThreadPoolExecutor() as executor: + yield executor