From d8a06f05af6bb8ff2d75152abfcd7e545f41de43 Mon Sep 17 00:00:00 2001 From: Aaron Jomy Date: Fri, 23 Oct 2026 18:01:27 +0200 Subject: [PATCH] [Python][ML] Skip the ImplicitMT test without IMT DataLoaderImplicitMT.test01_implicit_mt_not_supported enables implicit multi-threading and expects RDataLoader to raise. In a ROOT built with imt=OFF, EnableImplicitMT() does nothing, so IsImplicitMTEnabled() stays false, the RDataFrame has one slot and nothing is raised. The test fails with "RuntimeError not raised" on the imt=Off CI lane (ubuntu22). Skip the test case when "imt" is not among the configured features. --- bindings/pyroot/pythonizations/test/ml_dataloader.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bindings/pyroot/pythonizations/test/ml_dataloader.py b/bindings/pyroot/pythonizations/test/ml_dataloader.py index 98200fcc245e9..19617ef806a66 100644 --- a/bindings/pyroot/pythonizations/test/ml_dataloader.py +++ b/bindings/pyroot/pythonizations/test/ml_dataloader.py @@ -8123,6 +8123,7 @@ def test08_round_trip(self): np.testing.assert_array_equal(w.flatten(), np.full(20, 0.5)) +@unittest.skipUnless("imt" in ROOT.gROOT.GetConfigFeatures().split(), "ROOT was built without implicit multi-threading") class DataLoaderImplicitMT(unittest.TestCase): file_name = "dataloader_imt.root" tree_name = "mytree"