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])