We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 122b36e commit 31b252eCopy full SHA for 31b252e
tests/test_import.py
@@ -108,12 +108,12 @@ def test_process_normfactor_configs():
108
assert result['ParallelMeasurement']['mu_both']['bounds'] == [[1.0, 5.0]]
109
110
111
-def test_process_channel_missing_root(mocker):
+def test_process_channel_missing_root(mocker, tmp_path):
112
# mock missing ElementTree root
113
mock_channelxml = mocker.Mock(spec=ET.ElementTree)
114
mock_channelxml.getroot.return_value = None
115
116
- resolver = pyhf.readxml.resolver_factory(Path("/tmp"), [])
+ resolver = pyhf.readxml.resolver_factory(tmp_path, [])
117
118
with pytest.raises(RuntimeError, match="Root element of ElementTree is missing"):
119
pyhf.readxml.process_channel(mock_channelxml, resolver)
0 commit comments