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

Function _test_validation

dali/test/python/operator_1/test_inflate.py:332–335  ·  view source on GitHub ↗
(pipeline, error_glob, kwargs=None)

Source from the content-addressed store, hash-verified

330
331
332def _test_validation(pipeline, error_glob, kwargs=None):
333 with assert_raises(RuntimeError, glob=error_glob):
334 pipe = pipeline(batch_size=4, num_threads=4, device_id=0, **(kwargs or {}))
335 pipe.run()
336
337
338@has_operator("decoders.inflate")

Callers

nothing calls this directly

Calls 3

assert_raisesFunction · 0.90
pipelineFunction · 0.70
runMethod · 0.45

Tested by

no test coverage detected