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

Function test_flip_config

dask/array/_array_expr/tests/test_config.py:14–20  ·  view source on GitHub ↗

Config changes after the initial import are ignored with a warning

()

Source from the content-addressed store, hash-verified

12
13
14def 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
23def test_str_config():

Callers

nothing calls this directly

Calls 2

_array_expr_enabledFunction · 0.90
setMethod · 0.80

Tested by

no test coverage detected