Skip to content

Commit

Permalink
[test_residue_and_atom_utils.Test_get_SS.test_traj] reword
Browse files Browse the repository at this point in the history
  • Loading branch information
gph82 committed May 10, 2024
1 parent 3202097 commit 5058183
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_residue_and_atom_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@ def test_list(self):
assert from_tuple is False
self.assertListEqual(ss_array, [1, 2, 3, 4])

@unittest.skipIf(_sys.version.startswith("3.7") and _platform.system().lower()=="darwin", "Random segfaults. Python 3.7 on MacOs is not officially supported anyways.")
def test_traj(self):
traj = _md.load(test_filenames.actor_pdb)
from_tuple, ss_array = residue_and_atom.get_SS(traj)
Expand All @@ -568,6 +569,7 @@ def test_read_wo_top(self):
ss_ref = _md.compute_dssp(_md.load(test_filenames.actor_pdb))[0]
_np.testing.assert_array_equal(ss_array, ss_ref)

@unittest.skipIf(_sys.version.startswith("3.7") and _platform.system().lower()=="darwin", "Random segfaults. Python 3.7 on MacOs is not officially supported anyways.")
def test_read_w_top(self):
from_tuple, ss_array = residue_and_atom.get_SS(test_filenames.traj_xtc, top=test_filenames.top_pdb)
assert from_tuple is False
Expand Down

0 comments on commit 5058183

Please sign in to comment.