diff --git a/modules/seq/alg/tests/test_aligntoseqres.py b/modules/seq/alg/tests/test_aligntoseqres.py index 0f4b8ceaa9bdbdf61bec7a390127b6ebc6687f89..6c390008e69d81d2613337a863503769b6da1872 100644 --- a/modules/seq/alg/tests/test_aligntoseqres.py +++ b/modules/seq/alg/tests/test_aligntoseqres.py @@ -68,5 +68,9 @@ class TestAlignToSeqRes(unittest.TestCase): self.assertEqual(seq.alg.ValidateSEQRESAlignment(seqres_aln, chain), False) if __name__ == "__main__": - from ost import testutils - testutils.RunTests() + builder=conop.GetBuilder() + if not hasattr(builder, 'compound_lib'): + print 'default builder does not use compound library. ignoring unit tests' + else: + from ost import testutils + testutils.RunTests()