mailr8128 - /1.3/test_suite/system_tests/relax_fit.py


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

Header


Content

Posted by edward on December 04, 2008 - 16:16:
Author: bugman
Date: Thu Dec  4 16:16:15 2008
New Revision: 8128

URL: http://svn.gna.org/viewcvs/relax?rev=8128&view=rev
Log:
A temporary directory is now created and deleted in the relaxation 
curve-fitting system tests.


Modified:
    1.3/test_suite/system_tests/relax_fit.py

Modified: 1.3/test_suite/system_tests/relax_fit.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/system_tests/relax_fit.py?rev=8128&r1=8127&r2=8128&view=diff
==============================================================================
--- 1.3/test_suite/system_tests/relax_fit.py (original)
+++ 1.3/test_suite/system_tests/relax_fit.py Thu Dec  4 16:16:15 2008
@@ -22,6 +22,7 @@
 
 # Python module imports.
 import sys
+from tempfile import mkdtemp
 from unittest import TestCase
 
 # relax module imports.
@@ -39,10 +40,17 @@
         # Create the data pipe.
         self.relax.interpreter._Pipe.create('mf', 'mf')
 
+        # Create a temporary directory for dumping files.
+        ds.tmpdir = mkdtemp()
+
 
     def tearDown(self):
         """Reset the relax data storage object."""
 
+        # Remove the temporary directory.
+        rmtree(ds.tmpdir)
+
+        # Reset the relax data storage object.
         ds.__reset__()
 
 




Related Messages


Powered by MHonArc, Updated Thu Dec 04 16:40:02 2008