Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions testsuite/MDAnalysisTests/analysis/test_hole2.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,10 @@ def test_application_error(self, tmpdir):

def test_output_level(self, tmpdir):
with tmpdir.as_cwd():
with pytest.warns(UserWarning) as rec:
with pytest.warns(UserWarning, match="needs to be < 3"):
profiles = hole2.hole(self.filename,
random_seed=self.random_seed,
output_level=100)
assert len(rec) == 1
assert 'needs to be < 3' in rec[0].message.args[0]
# no profiles
assert len(profiles) == 0

def test_keep_files(self, tmpdir):
Expand Down