-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -352,17 +352,14 @@ def test_export_sample_zerodata(mocker, spec): | |
sampledata = [0.0] * len(samplespec['data']) | ||
|
||
mocker.patch('pyhf.writexml._ROOT_DATA_FILE') | ||
# make sure no RuntimeWarning, https://stackoverflow.com/a/45671804 | ||
with pytest.warns(None) as record: | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
matthewfeickert
Author
Member
|
||
for modifierspec in samplespec['modifiers']: | ||
pyhf.writexml.build_modifier( | ||
{'measurements': [{'config': {'parameters': []}}]}, | ||
modifierspec, | ||
channelname, | ||
samplename, | ||
sampledata, | ||
) | ||
assert not record.list | ||
for modifierspec in samplespec['modifiers']: | ||
pyhf.writexml.build_modifier( | ||
{'measurements': [{'config': {'parameters': []}}]}, | ||
modifierspec, | ||
channelname, | ||
samplename, | ||
sampledata, | ||
) | ||
|
||
|
||
@pytest.mark.parametrize( | ||
|
Remembering the changelog in PyTest 7:
So was this producing a warning?