From 8c81d4f23ecad1a4af65bb80d3e0045b270a10a3 Mon Sep 17 00:00:00 2001 From: Jonas Rembser Date: Wed, 9 Sep 2026 14:49:01 +0000 Subject: [PATCH] [Python] Check std::array type without string matching This is more general than matching the type name, which depends on how types get represented by cppyy. --- bindings/pyroot/pythonizations/test/rdataframe_asnumpy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/pyroot/pythonizations/test/rdataframe_asnumpy.py b/bindings/pyroot/pythonizations/test/rdataframe_asnumpy.py index 2ecdd9dafa262..e75d0150913b8 100644 --- a/bindings/pyroot/pythonizations/test/rdataframe_asnumpy.py +++ b/bindings/pyroot/pythonizations/test/rdataframe_asnumpy.py @@ -120,7 +120,7 @@ def test_read_array(self): npy = df.AsNumpy() self.assertEqual(npy["x"].size, 5) self.assertEqual(list(npy["x"][0]), [0, 0, 0]) - self.assertIn("array", str(type(npy["x"][0]))) + self.assertIs(type(npy["x"][0]), ROOT.std.array["unsigned int", 3]) def test_read_th1f(self): """