From 80a73d604c0b74902fc8ad1b46912806af7dc603 Mon Sep 17 00:00:00 2001 From: Sudhanshu Dubey Date: Fri, 21 Aug 2020 20:45:31 +0530 Subject: [PATCH] FEM: tests, adding check for file ... to solve the issue reported at https://forum.freecadweb.org/viewtopic.php?p=424935#p424935 --- src/Mod/Fem/femtest/app/test_solver_z88.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]