FEM: Use format to avoid error is the message is not pure string

Traceback (most recent call last):
  File "/home/przemo/software/FreeCAD/build/Mod/Fem/TestFem.py", line
229, in test_new_analysis
    ret = self.compare_stats(fea, static_expected_values)
  File "/home/przemo/software/FreeCAD/build/Mod/Fem/TestFem.py", line
147, in compare_stats
    fcc_print(sf_content)
  File "/home/przemo/software/FreeCAD/build/Mod/Fem/TestFem.py", line
55, in fcc_print
    FreeCAD.Console.PrintMessage(message + '\n')
TypeError: can only concatenate list (not "str") to list

Signed-off-by: Przemo Firszt <[email protected]>
This commit is contained in:
Przemo Firszt
2015-11-14 14:53:36 +01:00
committed by wmayer
parent 7848d08121
commit b0fbd60835
+1 -1
View File
@@ -52,7 +52,7 @@ mesh_volumes_file = test_file_dir + '/mesh_volumes.csv'
def fcc_print(message):
FreeCAD.Console.PrintMessage(message + '\n')
FreeCAD.Console.PrintMessage('{} \n'.format(message))
class FemTest(unittest.TestCase):