Skip to content

Commit

Permalink
Disabling specific pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
yimuchen committed Oct 30, 2023
1 parent 6ae8b03 commit a9783ee
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_histread.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ def test_default_read(self):
"""
try:
readout = read_hist(TestHistUtils.base_hist)
# pylint: disable=W0702
except:
self.fail("Histogram reading raised an unexpected exception.")
# pylint: enable=W0702

# Checking dimension compatibility
self.assertTrue(len(readout["dataset"]) == len(readout["flavor"]))
Expand All @@ -67,8 +69,11 @@ def test_projection_read(self):
TestHistUtils.base_hist[{"dataset": "data", "flavor": sum}]
)
read2 = read_hist(TestHistUtils.base_hist[{"dataset": "QCD", "flavor": 0j}])
# pylint: disable=W0702
except:
self.fail("Histogram reading raised an unexpected exception.")
# pylint: enable=W0702

# Checking dimension compatibility
self.assertTrue(len(read1["eta"]) == len(read1["pt"]))
self.assertTrue(len(read1["eta"]) == len(read2["pt"]))
Expand Down Expand Up @@ -106,8 +111,10 @@ def test_uncertainty_generation(self):
"asymmetric histogram": (q_h, t_h),
},
)
# pylint: disable=W0702
except:
self.fail("Unexpected exception of automatic uncertainty generation.")
# pylint: enable=W0702

def check_val(arr1, arr2):
return self.assertTrue(
Expand Down Expand Up @@ -157,8 +164,10 @@ def test_table_generation(self):
axes_rename=_rename_,
axes_units=_units_,
)
# pylint: disable=W0702
except:
self.fail("Unexpected exception of table generation.")
# pylint: enable=W0702

readout = read_hist(TestHistUtils.base_hist)

Expand Down

0 comments on commit a9783ee

Please sign in to comment.