()
| 2587 | |
| 2588 | @pytest.mark.filterwarnings("error") |
| 2589 | def 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 | |
| 2602 | def test_drop_columns_with_common_prefix(): |
nothing calls this directly
no test coverage detected