Skip to content

Commit

Permalink
Update test_xdr.py
Browse files Browse the repository at this point in the history
changed and to or pytest warning in test
  • Loading branch information
talagayev authored Nov 26, 2024
1 parent e71943f commit ce3656a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testsuite/MDAnalysisTests/coordinates/test_xdr.py
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ def test_persistent_offsets_readonly(self, tmpdir):

filename = str(tmpdir.join(os.path.basename(self.filename)))
# try to write a offsets file
with (pytest.warns(UserWarning, match="Couldn't save offsets") and
with (pytest.warns(UserWarning, match="Couldn't save offsets") or
pytest.warns(UserWarning, match="Cannot write")):
self._reader(filename)
assert_equal(os.path.exists(XDR.offsets_filename(filename)), False)
Expand Down

0 comments on commit ce3656a

Please sign in to comment.