Skip to content
Snippets Groups Projects
Commit 909cefa5 authored by Enric Tejedor Saavedra's avatar Enric Tejedor Saavedra
Browse files

[Exp PyROOT] Test more overloads of SetBranchAddress (fallback case)

parent 06a557fa
No related branches found
No related tags found
No related merge requests found
......@@ -133,6 +133,18 @@ class TTreeSetBranchAddress(unittest.TestCase):
self.assertEqual(ms.myint1, self.more)
self.assertEqual(ms.myint2, 0)
def test_fallback_case(self):
f,t,c = self.get_tree_and_chain()
for ds in t,c:
n = array('f', [ 0. ])
b = ds.GetBranch('floatb')
# Test an overload that uses the original SetBranchAddress proxy
ds.SetBranchAddress('floatb', n, b)
ds.GetEntry(0)
self.assertEqual(n[0], self.more)
def test_ntuples(self):
f,nt,ntd = self.get_ntuples()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment