Skip to content

Commit

Permalink
fix bug in UT
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiahsinChu committed Dec 29, 2024
1 parent cda4dca commit 2b4ab7a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions testsuite/MDAnalysisTests/core/test_atomselections.py
Original file line number Diff line number Diff line change
Expand Up @@ -1093,14 +1093,11 @@ def test_invalid_relprop_selection(self, universe):
with pytest.raises(SelectionError, match="Unknown selection token"):
universe.select_atoms("relprop z < 2")
with pytest.raises(SelectionError, match="Expected one of"):
universe.select_atoms("relprop id < 2 index 0")
empty_universe = mda.Universe.empty(
6, 2, atom_resindex=[0, 0, 0, 1, 1, 1]
)
universe.select_atoms("relprop resid < 2 index 0")
with pytest.raises(
SelectionError, match="This Universe does not contain"
):
empty_universe.select_atoms("relprop z <= 1 index 0")
universe.select_atoms("relprop z <= 1 index 0")


def test_segid_and_resid():
Expand Down

0 comments on commit 2b4ab7a

Please sign in to comment.