Skip to content

Commit

Permalink
Skip test unless we have new python-ihm
Browse files Browse the repository at this point in the history
  • Loading branch information
benmwebb committed Oct 4, 2024
1 parent 3661dba commit 7544d0e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/test_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import modelcif.reader
import modelcif.reference
import ihm
import ihm.reader


class Tests(unittest.TestCase):
Expand Down Expand Up @@ -1242,6 +1243,12 @@ def test_chem_comp_handler(self):

def test_add_to_system(self):
"""Test adding new mmCIF input to existing System"""
# Skip test when using older python-ihm
try:
_ = ihm.reader.SystemReader(
model_class=None, starting_model_class=None, system=None)
except TypeError:
self.skipTest("needs newer python-ihm")
s = modelcif.System()
e = modelcif.Entity('AHC')
e._id = '42'
Expand Down

0 comments on commit 7544d0e

Please sign in to comment.