MCPcopy Create free account
hub / github.com/NVIDIA/DALI / test_warnings

Function test_warnings

dali/test/python/operator_1/test_operator_warnings.py:60–68  ·  view source on GitHub ↗
(op, name, replacement, message)

Source from the content-addressed store, hash-verified

58
59@params(*module_variants)
60def test_warnings(op, name, replacement, message):
61
62 glob = f"WARNING: `{op.__module__}.{name}` is now deprecated."
63 if replacement:
64 glob += f" Use `nvidia.dali.fn.{replacement}` instead."
65 if message:
66 glob += f"\n{message}"
67 with assert_warns(DeprecationWarning, glob=glob):
68 op()

Callers

nothing calls this directly

Calls 2

assert_warnsFunction · 0.90
opFunction · 0.50

Tested by

no test coverage detected