[Mumps2Py:] [51] lint removal. |
[ Thread Index |
Date Index
| More lists.mumps2py.org/discuss Archives
]
Revision: 51
Author: pgallot
Date: 2008-01-24 21:27:34 +0000 (Thu, 24 Jan 2008)
Log Message:
-----------
lint removal.
Modified Paths:
--------------
trunk/mumps2py_test.py
Modified: trunk/mumps2py_test.py
===================================================================
--- trunk/mumps2py_test.py 2008-01-24 21:16:40 UTC (rev 50)
+++ trunk/mumps2py_test.py 2008-01-24 21:27:34 UTC (rev 51)
@@ -27,8 +27,8 @@
file_1 = open(filename_1)
file_2 = open(filename_2)
try:
- file1_text= file_1.read()
- file2_text= file_2.read()
+ file1_text = file_1.read()
+ file2_text = file_2.read()
finally:
file_1.close()
file_2.close()
@@ -60,8 +60,8 @@
resultcfg = ConfigParser.ConfigParser()
config.read(cfg_file_name)
for test_id in config.sections():
- test_file = config.get(test_id,"input_file")
- compare_file = config.get(test_id,"compare_file",test_file)
+ test_file = config.get(test_id, "input_file")
+ compare_file = config.get(test_id, "compare_file", test_file)
print test_id, test_file
out_file = "result.txt"
@@ -73,8 +73,8 @@
result = "Fail"
resultcfg.add_section(test_id)
- resultcfg.set(test_id,"input_file",test_file)
- resultcfg.set(test_id,"result",result)
+ resultcfg.set(test_id, "input_file", test_file)
+ resultcfg.set(test_id, "result", result)
results_file = open(results_file_name, 'w+')
resultcfg.write(results_file)
@@ -89,9 +89,9 @@
"""given a Mumps input file, set up a new regression test"""
try:
- cfg_file = open(cfg_file_name,'r')
- except IOError, e:
- cfg_file = open(cfg_file_name,'w+')
+ cfg_file = open(cfg_file_name, 'r')
+ except IOError, err:
+ cfg_file = open(cfg_file_name, 'w+')
config = ConfigParser.ConfigParser()
config.set("DEFAULT", "id", 0)
config.set("DEFAULT", "testdir", 'testfiles')
@@ -102,21 +102,21 @@
config = ConfigParser.ConfigParser()
config.read(cfg_file_name)
- new_id = config.getint("DEFAULT","id") + 1
+ new_id = config.getint("DEFAULT", "id") + 1
test_id = "Test_%d" % (new_id)
config.set("DEFAULT", "id", new_id)
- test_dir = config.get("DEFAULT","testdir")
+ test_dir = config.get("DEFAULT", "testdir")
config.add_section(test_id)
- config.set(test_id,"input_file",test_file)
+ config.set(test_id, "input_file", test_file)
if os.path.isabs(test_file):
outname = os.path.basename(test_file)
else:
outname = test_file
out_file = test_dir + "/" + outname + ".oof" # output output file
- config.set(test_id,"compare_file",out_file)
- cfg_file = open(cfg_file_name,'w')
+ config.set(test_id, "compare_file", out_file)
+ cfg_file = open(cfg_file_name, 'w')
config.write(cfg_file)
cfg_file.close()