diff --git a/testsuite/MDAnalysisTests/analysis/test_psa.py b/testsuite/MDAnalysisTests/analysis/test_psa.py index 24cefdb917a..64443a797ba 100644 --- a/testsuite/MDAnalysisTests/analysis/test_psa.py +++ b/testsuite/MDAnalysisTests/analysis/test_psa.py @@ -138,7 +138,13 @@ def test_dist_mat_to_vec_func_out_of_bounds(self): # Check if both i and j are out of bounds of N with self.assertRaises(ValueError): - PSA.dist_mat_to_vec(5, 6, 6) + PSA.dist_mat_to_vec(5, 6, 7) + + def test_dist_mat_to_vec_func_i_equals_j(self): + """Test that ValueError is raised when i == j""" + + with self.assertRaises(ValueError): + PSA.dist_mat_to_vec(5, 4, 4) def test_dist_mat_to_vec_func_bad_integers(self): """Test that ValueError is raised when i or j are