mailr14712 - /1.3/test_suite/unit_tests/_prompt/data_types.py


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

Header


Content

Posted by edward on September 20, 2011 - 12:12:
Author: bugman
Date: Tue Sep 20 12:12:57 2011
New Revision: 14712

URL: http://svn.gna.org/viewcvs/relax?rev=14712&view=rev
Log:
Bug fix for many unit tests on MS Windows.

The os.tmpfile() call has been replaced by tempfile.mkstemp() in the data 
types passed into the unit
tests of the prompt interface.  The os.tmpfile() call on Windows results in a 
"OSError: [Errno 13]
Permission denied" error.


Modified:
    1.3/test_suite/unit_tests/_prompt/data_types.py

Modified: 1.3/test_suite/unit_tests/_prompt/data_types.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/_prompt/data_types.py?rev=14712&r1=14711&r2=14712&view=diff
==============================================================================
--- 1.3/test_suite/unit_tests/_prompt/data_types.py (original)
+++ 1.3/test_suite/unit_tests/_prompt/data_types.py Tue Sep 20 12:12:57 2011
@@ -22,7 +22,7 @@
 
 # Python module imports.
 from numpy import int8, int16, int32, int64, float32, float64, zeros
-from os import tmpfile
+from tempfile import mkstemp
 
 
 class Container:
@@ -77,7 +77,7 @@
 DATA_TYPES.append(['int', zeros(2, int64)[0]])
 
 # File descriptor.
-DATA_TYPES.append(['file', tmpfile()])
+DATA_TYPES.append(['file', mkstemp()])
 
 # Floats.
 DATA_TYPES.append(['float', 0.0])




Related Messages


Powered by MHonArc, Updated Tue Sep 20 12:20:02 2011