Hi, I'm not sure if using the os.devnull file object will work here. If not, I have in most parts of relax used the relax_io.open_write_file() function. In this case, simply calling the file the 'devnull' string will cause devnull to be used. This is better as there is error checking for the support of os.devnull.
Regards, Edward On Sun, Jul 6, 2008 at 6:52 PM, <[EMAIL PROTECTED]> wrote: > Author: semor > Date: Sun Jul 6 18:52:50 2008 > New Revision: 6784 > > URL: http://svn.gna.org/viewcvs/relax?rev=6784&view=rev > Log: > Converted the output file to 'devnull'. > > > Modified: > 1.3/test_suite/system_tests/diffusion_tensor.py > > Modified: 1.3/test_suite/system_tests/diffusion_tensor.py > URL: > http://svn.gna.org/viewcvs/relax/1.3/test_suite/system_tests/diffusion_tensor.py?rev=6784&r1=6783&r2=6784&view=diff > ============================================================================== > --- 1.3/test_suite/system_tests/diffusion_tensor.py (original) > +++ 1.3/test_suite/system_tests/diffusion_tensor.py Sun Jul 6 18:52:50 2008 > @@ -21,6 +21,7 @@ > > ############################################################################### > > # Python module imports. > +from os import devnull > from unittest import TestCase > import sys > > @@ -103,8 +104,8 @@ > > # Create the diffusion tensor object > self.relax.interpreter._Pipe.switch('sphere') > - > self.relax.interpreter._Structure.create_diff_tensor_pdb(file='tensor.pdb') > + > self.relax.interpreter._Structure.create_diff_tensor_pdb(file=devnull) > self.relax.interpreter._Pipe.switch('spheroid') > - > self.relax.interpreter._Structure.create_diff_tensor_pdb(file='tensor.pdb') > + > self.relax.interpreter._Structure.create_diff_tensor_pdb(file=devnull) > self.relax.interpreter._Pipe.switch('ellipsoid') > - > self.relax.interpreter._Structure.create_diff_tensor_pdb(file='tensor.pdb') > + > self.relax.interpreter._Structure.create_diff_tensor_pdb(file=devnull) > > > _______________________________________________ > relax (http://nmr-relax.com) > > This is the relax-commits mailing list > [EMAIL PROTECTED] > > To unsubscribe from this list, get a password > reminder, or change your subscription options, > visit the list information page at > https://mail.gna.org/listinfo/relax-commits > _______________________________________________ relax (http://nmr-relax.com) This is the relax-devel mailing list [email protected] To unsubscribe from this list, get a password reminder, or change your subscription options, visit the list information page at https://mail.gna.org/listinfo/relax-devel

