mailr3148 - /1.3/test_suite/unit_tests/data/test_diff_tensor.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on March 10, 2007 - 02:29:
Author: bugman
Date: Sat Mar 10 02:28:28 2007
New Revision: 3148

URL: http://svn.gna.org/viewcvs/relax?rev=3148&view=rev
Log:
Removed the ability for stand alone execution of the diffusion tensor data 
structure unit tests.

Stand alone execution is unnecessary as the command:

$ ./unit_test_runner.py data/test_diff_tensor.py

will run the tests.

Three things have been changed.  Firstly the system path modifications have 
been removed.  Secondly
the 'if __name__ == "__main__":' block has been deleted.  Finally the 
'svn:executable' property has
been removed from the repository.


Modified:
    1.3/test_suite/unit_tests/data/test_diff_tensor.py   (contents, props 
changed)

Modified: 1.3/test_suite/unit_tests/data/test_diff_tensor.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/data/test_diff_tensor.py?rev=3148&r1=3147&r2=3148&view=diff
==============================================================================
--- 1.3/test_suite/unit_tests/data/test_diff_tensor.py (original)
+++ 1.3/test_suite/unit_tests/data/test_diff_tensor.py Sat Mar 10 02:28:28 
2007
@@ -28,12 +28,6 @@
 from string import split
 from sys import path
 from unittest import TestCase, main
-
-# Modify the system path so that the relax modules can be imported (for 
stand alone execution).
-path_comps = split(path[0], sep)
-if len(path_comps) > 3:
-    relax_path = sep + join(*path_comps[0:-3])
-    path.append(relax_path)
 
 from data.diff_tensor import DiffTensorElement, DiffTensorSimList
 from relax_errors import RelaxError
@@ -322,7 +316,3 @@
         # Test that the Diso parameter has been set correctly.
         self.assert_(hasattr(self.diff_data, 'Diso'))
         self.assertEqual(self.diff_data.Diso, 1/(6*1e-8))
-
-
-if __name__ == '__main__':
-    main()

Propchange: 1.3/test_suite/unit_tests/data/test_diff_tensor.py
------------------------------------------------------------------------------
--- svn:executable (original)
+++ svn:executable (removed)
@@ -1,1 +1,0 @@
-*




Related Messages


Powered by MHonArc, Updated Sat Mar 10 02:40:05 2007