From 2b4ab7ad1a9910823597aa5765be00cb21b03129 Mon Sep 17 00:00:00 2001 From: Jia-Xin Zhu Date: Sun, 29 Dec 2024 23:30:04 +0800 Subject: [PATCH] fix bug in UT --- testsuite/MDAnalysisTests/core/test_atomselections.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/testsuite/MDAnalysisTests/core/test_atomselections.py b/testsuite/MDAnalysisTests/core/test_atomselections.py index 45f15823f2..f8d5f98b97 100644 --- a/testsuite/MDAnalysisTests/core/test_atomselections.py +++ b/testsuite/MDAnalysisTests/core/test_atomselections.py @@ -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():