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

Function test_str_config

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

Prevent accidental use of 'false' string in YAML config, which would evaluate to True.

()

Source from the content-addressed store, hash-verified

21
22
23def test_str_config():
24 """Prevent accidental use of 'false' string in YAML config,
25 which would evaluate to True.
26 """
27 with dask.config.set({"array.query-planning": "false"}):
28 with pytest.raises(TypeError):
29 _array_expr_enabled()

Callers

nothing calls this directly

Calls 2

_array_expr_enabledFunction · 0.90
setMethod · 0.80

Tested by

no test coverage detected