MCPcopy Create free account
hub / github.com/dask/dask / test_warn_annotations

Function test_warn_annotations

dask/dataframe/dask_expr/tests/test_collection.py:2589–2599  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2587
2588@pytest.mark.filterwarnings("error")
2589def test_warn_annotations():
2590 from_pandas(pd.DataFrame({"a": [1, 2, 3]}), npartitions=2)
2591
2592 dask.dataframe.dask_expr._collection._WARN_ANNOTATIONS = True
2593
2594 with pytest.warns(UserWarning, match="annotations.*retries.*ignore"):
2595 with dask.annotate(retries=3):
2596 from_pandas(pd.DataFrame({"a": [1, 2, 3]}), npartitions=2)
2597 # Don't warn a second time
2598 with dask.annotate(retries=3):
2599 from_pandas(pd.DataFrame({"a": [1, 2, 3]}), npartitions=2)
2600
2601
2602def test_drop_columns_with_common_prefix():

Callers

nothing calls this directly

Calls 1

from_pandasFunction · 0.90

Tested by

no test coverage detected