@@ -99,13 +99,9 @@ def test_inmemory_tree(self):
9999 x [0 ] = i
100100 tree .Fill ()
101101
102- # See https://github.com/root-project/root/issues/7541 and
103- # https://bugs.llvm.org/show_bug.cgi?id=49692 :
104- # llvm JIT fails to catch exceptions on M1, so we disable their testing
105- if platform .processor () != "arm" or platform .mac_ver ()[0 ] == '' :
106- with self .assertRaises (ROOT .std .runtime_error ):
107- # Trees with no associated files are not supported
108- create_dummy_headnode (tree )
102+ with self .assertRaises (ROOT .std .runtime_error ):
103+ # Trees with no associated files are not supported
104+ create_dummy_headnode (tree )
109105
110106 def assertArgs (self , args_list1 , args_list2 ):
111107 """
@@ -231,31 +227,27 @@ def test_three_args_with_multiple_files(self):
231227
232228 def test_tree_with_friends_and_treeindex (self ):
233229 """TTreeIndex is not supported in distributed mode."""
234- # See https://github.com/root-project/root/issues/7541 and
235- # https://bugs.llvm.org/show_bug.cgi?id=49692 :
236- # llvm JIT fails to catch exceptions on M1, so we disable their testing
237- if platform .processor () != "arm" or platform .mac_ver ()[0 ] == '' :
238- main_file = "distrdf_indexed_friend_main.root"
239- aux_file = "distrdf_indexed_friend_aux.root"
240- fill_main_tree_and_indexed_friend (main_file , aux_file )
241-
242- main_chain = ROOT .TChain ("mainTree" , "mainTree" )
243- main_chain .Add (main_file )
244- aux_chain = ROOT .TChain ("auxTree" , "auxTree" )
245- aux_chain .Add (aux_file )
246-
247- aux_chain .BuildIndex ("idx" )
248- main_chain .AddFriend (aux_chain )
249-
250- with self .assertRaises (ValueError ) as context :
251- create_dummy_headnode (main_chain )
252-
253- self .assertEqual (str (context .exception ),
254- "Friend tree 'auxTree' has a TTreeIndex. This is not supported in distributed mode." )
255-
256- # Remove unnecessary .root files
257- os .remove (main_file )
258- os .remove (aux_file )
230+ main_file = "distrdf_indexed_friend_main.root"
231+ aux_file = "distrdf_indexed_friend_aux.root"
232+ fill_main_tree_and_indexed_friend (main_file , aux_file )
233+
234+ main_chain = ROOT .TChain ("mainTree" , "mainTree" )
235+ main_chain .Add (main_file )
236+ aux_chain = ROOT .TChain ("auxTree" , "auxTree" )
237+ aux_chain .Add (aux_file )
238+
239+ aux_chain .BuildIndex ("idx" )
240+ main_chain .AddFriend (aux_chain )
241+
242+ with self .assertRaises (ValueError ) as context :
243+ create_dummy_headnode (main_chain )
244+
245+ self .assertEqual (str (context .exception ),
246+ "Friend tree 'auxTree' has a TTreeIndex. This is not supported in distributed mode." )
247+
248+ # Remove unnecessary .root files
249+ os .remove (main_file )
250+ os .remove (aux_file )
259251
260252
261253class NumEntriesTest (unittest .TestCase ):
0 commit comments