Skip to content

Commit 804b1c4

Browse files
get file in tests/test_modifiers
1 parent 70e9ecb commit 804b1c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_modifiers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ def test_invalid_bin_wise_modifier(datadir, patch_file):
189189

190190
assert pyhf.Model(spec)
191191

192-
with open(datadir.joinpath(patch_file), encoding="utf-8") as spec_file:
193-
patch = JsonPatch.from_string(spec_file.read())
192+
with open(datadir.joinpath(patch_file), encoding="utf-8") as read_file:
193+
patch = JsonPatch.from_string(read_file.read())
194194
bad_spec = patch.apply(spec)
195195

196196
with pytest.raises(pyhf.exceptions.InvalidModifier):

0 commit comments

Comments
 (0)