[Mumps2Py:] [127] open the comparison files read-only. |
[ Thread Index |
Date Index
| More lists.mumps2py.org/discuss Archives
]
Revision: 127
Author: pgallot
Date: 2008-02-24 23:55:26 +0000 (Sun, 24 Feb 2008)
Log Message:
-----------
open the comparison files read-only.
Modified Paths:
--------------
trunk/mumps2py_test.py
Modified: trunk/mumps2py_test.py
===================================================================
--- trunk/mumps2py_test.py 2008-02-22 03:35:45 UTC (rev 126)
+++ trunk/mumps2py_test.py 2008-02-24 23:55:26 UTC (rev 127)
@@ -24,8 +24,8 @@
def compare_files(filename_1, filename_2):
"""returns True if two (small) files match exactly"""
- file_1 = open(filename_1)
- file_2 = open(filename_2)
+ file_1 = open(filename_1,"r")
+ file_2 = open(filename_2,"r")
try:
file1_text = file_1.read()
file2_text = file_2.read()