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

Function test_deprecated_message

dask/tests/test_utils.py:849–858  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

847
848
849def test_deprecated_message():
850 @_deprecated(message="woohoo")
851 def foo():
852 return "bar"
853
854 with pytest.warns(FutureWarning) as record:
855 assert foo() == "bar"
856
857 assert len(record) == 1
858 assert str(record[0].message) == "woohoo"
859
860
861def test_typename():

Callers

nothing calls this directly

Calls 1

fooFunction · 0.70

Tested by

no test coverage detected