Config changes after the initial import are ignored with a warning
()
| 12 | |
| 13 | |
| 14 | def test_flip_config(): |
| 15 | """Config changes after the initial import are ignored with a warning""" |
| 16 | prev = _array_expr_enabled() |
| 17 | with dask.config.set({"array.query-planning": not prev}): |
| 18 | with pytest.warns(RuntimeWarning, match="first imported"): |
| 19 | actual = _array_expr_enabled() |
| 20 | assert actual == prev |
| 21 | |
| 22 | |
| 23 | def test_str_config(): |
nothing calls this directly
no test coverage detected