mailr3858 - /1.3/test_suite/unit_tests/sequence_testing_base.py


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

Header


Content

Posted by edward on November 23, 2007 - 16:19:
Author: bugman
Date: Fri Nov 23 16:19:15 2007
New Revision: 3858

URL: http://svn.gna.org/viewcvs/relax?rev=3858&view=rev
Log:
And another fix for the unit test for writing an amino acid sequence.


Modified:
    1.3/test_suite/unit_tests/sequence_testing_base.py

Modified: 1.3/test_suite/unit_tests/sequence_testing_base.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/sequence_testing_base.py?rev=3858&r1=3857&r2=3858&view=diff
==============================================================================
--- 1.3/test_suite/unit_tests/sequence_testing_base.py (original)
+++ 1.3/test_suite/unit_tests/sequence_testing_base.py Fri Nov 23 16:19:15 
2007
@@ -121,14 +121,11 @@
         cdp.mol[0].res.add_item('GLY', 4)
         cdp.mol[0].res.add_item('SER', 5)
 
-        # The temporary file.
-        tmpfile = tempnam()
-
         # Write the residue sequence.
-        self.sequence_fns.write(file=tmpfile)
+        self.sequence_fns.write(file=self.tmpfile, res_num_col=0, 
res_name_col=1)
 
         # Open the temp file.
-        file = open(tmpfile)
+        file = open(self.tmpfile)
 
         # Get the md5sum of the file.
         file_md5 = md5()




Related Messages


Powered by MHonArc, Updated Fri Nov 23 16:40:16 2007