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

Function test_deprecated_message

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

fooFunction · 0.70

Tested by

no test coverage detected