From 7f80ce168deb1877abe4130fc8d1fb5801158595 Mon Sep 17 00:00:00 2001 From: Vanya Belyaev Date: Fri, 29 Nov 2024 11:41:17 +0100 Subject: [PATCH] better fix --- ostap/fitting/tests/test_fitting_selectors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ostap/fitting/tests/test_fitting_selectors.py b/ostap/fitting/tests/test_fitting_selectors.py index 697a8449..df0d2ba7 100755 --- a/ostap/fitting/tests/test_fitting_selectors.py +++ b/ostap/fitting/tests/test_fitting_selectors.py @@ -51,7 +51,7 @@ def create_tree ( fname , nentries ) : var2 = array ( 'd', [0.]) var3 = array ( 'd', [0.]) - with ROOTCWD() , ROOT.TFile.Open ( fname , 'new' ) as root_file: + with ROOT.TFile ( fname , 'new' ) as root_file: tree = ROOT.TTree ( 'S','tree' ) tree.SetDirectory ( root_file )