diff --git a/src/Mod/Fem/femtest/app/test_solver_z88.py b/src/Mod/Fem/femtest/app/test_solver_z88.py index b1fa823d04..ec99a67f5b 100644 --- a/src/Mod/Fem/femtest/app/test_solver_z88.py +++ b/src/Mod/Fem/femtest/app/test_solver_z88.py @@ -30,6 +30,7 @@ import sys import unittest from os import listdir from os.path import join +from os.path import isfile import FreeCAD @@ -136,7 +137,7 @@ class TestSolverZ88(unittest.TestCase): # compare created input files with the given input files test_path = join(testtools.get_fem_test_home_dir(), "z88", base_name) - test_files = [f for f in listdir(test_path)] + test_files = [f for f in listdir(test_path) if isfile(join(test_path, f))] # fcc_print(sorted(test_files)) not_files = ["__init__.py"] test_files = [f for f in test_files if f not in not_files]