Author: bugman Date: Sat Feb 19 15:48:30 2011 New Revision: 12590 URL: http://svn.gna.org/viewcvs/relax?rev=12590&view=rev Log: The BMRB system tests are now skipped if the bmrblib cannot be found. Modified: 1.3/test_suite/system_tests/bmrb.py Modified: 1.3/test_suite/system_tests/bmrb.py URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/system_tests/bmrb.py?rev=12590&r1=12589&r2=12590&view=diff ============================================================================== --- 1.3/test_suite/system_tests/bmrb.py (original) +++ 1.3/test_suite/system_tests/bmrb.py Sat Feb 19 15:48:30 2011 @@ -31,11 +31,28 @@ # relax module imports. from base_classes import SystemTestCase from data import Relax_data_store; ds = Relax_data_store() +import dep_check from status import Status; status = Status() class Bmrb(SystemTestCase): """TestCase class for functional tests of the reading and writing of BMRB STAR formatted files.""" + + def __init__(self, methodName='runTest'): + """Skip the tests if scipy is not installed. + + @keyword methodName: The name of the test. + @type methodName: str + """ + + # Missing module. + if not dep_check.bmrblib_module: + # Store in the status object. + status.skipped_tests.append([methodName, 'Bmrblib', 'system']) + + # Execute the base class method. + super(Bmrb, self).__init__(methodName) + def setUp(self): """Common set up for these system tests."""