From e67cd6ce4429306535cbb6876d97182c675c02d0 Mon Sep 17 00:00:00 2001 From: Michal Zientkiewicz Date: Mon, 30 Sep 2024 12:08:45 +0200 Subject: [PATCH] Silence a CodeQL warning about overwritten value in tests. Signed-off-by: Michal Zientkiewicz --- dali/test/python/test_pipeline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dali/test/python/test_pipeline.py b/dali/test/python/test_pipeline.py index 3def5fb4cc..a88473a1d9 100644 --- a/dali/test/python/test_pipeline.py +++ b/dali/test/python/test_pipeline.py @@ -2293,7 +2293,7 @@ def pdef(to_cpu): return to_cpu(gpu) with assert_raises(RuntimeError, glob="doesn't support transition from GPU to CPU"): - pipe = pdef(lambda gpu: gpu.cpu()) # this will raise an error at construction time + _ = pdef(lambda gpu: gpu.cpu()) # this will raise an error at construction time pipe = pdef(lambda gpu: gpu._to_backend("cpu")) # this will not raise errors until build-time