Skip to content

Commit

Permalink
ignore pyhf deprecationwarnings
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangWaltenberger committed Oct 24, 2024
1 parent 5549ea2 commit 07397bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions unittests/testRFails.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"""

import warnings
import sys
import os
sys.path.insert(0, "../")
Expand All @@ -34,7 +35,7 @@ def removeOutputs(self, f):
os.remove(fname)

def testRFailPrinters(self):

warnings.filterwarnings( action='ignore', category=DeprecationWarning )
filename = "./testFiles/rfails/mdm_r_fails.slha"
from smodels.statistics import pyhfInterface

Expand Down Expand Up @@ -93,7 +94,7 @@ def testRFailPrinters(self):
self.removeOutputs(outputfile)

def testRFailSummary(self):

warnings.filterwarnings( action='ignore', category=DeprecationWarning )
out = "./unitTestOutput"
dirname = "./testFiles/rfails/"
from smodels.statistics import pyhfInterface
Expand Down

0 comments on commit 07397bf

Please sign in to comment.