Skip to content

Commit

Permalink
change dms test to has_velocities rather than hasattr
Browse files Browse the repository at this point in the history
  • Loading branch information
hmacdope committed May 26, 2022
1 parent 2d84a67 commit a26f4fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion testsuite/MDAnalysisTests/coordinates/test_dms.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ def ts(self, universe):
def test_global_cell(self, ts):
assert ts.dimensions is None

# cythonised class can no longer raise AttributeError
# so changed to test of has_velocities
def test_velocities(self, ts):
assert_equal(hasattr(ts, "_velocities"), False)
assert_equal(ts.has_velocities, False)

def test_number_of_coords(self, universe):
# Desired value taken from VMD
Expand Down

0 comments on commit a26f4fc

Please sign in to comment.