Skip to content
Snippets Groups Projects
Commit 6d1881eb authored by BIOPZ-Haas Juergen's avatar BIOPZ-Haas Juergen
Browse files

adding check for presence of compound lib when running test_nonstandard.py

parent acb8fd31
No related branches found
No related tags found
No related merge requests found
......@@ -117,7 +117,11 @@ class TestNonStandard(unittest.TestCase):
if __name__ == "__main__":
suite = unittest.TestLoader().loadTestsFromTestCase(TestNonStandard)
unittest.TextTestRunner().run(suite)
builder=conop.GetBuilder()
if not hasattr(builder, 'compound_lib'):
print 'default builder does not use compound library. ignoring unit tests'
else:
suite = unittest.TestLoader().loadTestsFromTestCase(TestNonStandard)
unittest.TextTestRunner().run(suite)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment