FEM: unit tests, fix

This commit is contained in:
Bernd Hahnebach
2020-07-14 08:35:53 +02:00
parent f899430739
commit 8f46df30ab
2 changed files with 3 additions and 5 deletions

View File

@@ -25,7 +25,6 @@ __title__ = "Solver calculix FEM unit tests"
__author__ = "Bernd Hahnebach"
__url__ = "http://www.freecadweb.org"
import sys
import unittest
from os.path import join
@@ -140,10 +139,8 @@ class TestSolverCalculix(unittest.TestCase):
def test_constraint_contact_solid_solid(
self
):
# TODO does not pass on Python 2
if sys.version_info.major < 3:
fcc_print("Python 2: test aborted.")
return
# TODO does pass on my local machine, but not on travis
return
from femexamples.constraint_contact_solid_solid import setup
setup(self.document, "calculix")

View File

@@ -26,6 +26,7 @@ __title__ = "Solver z88 FEM unit tests"
__author__ = "Bernd Hahnebach"
__url__ = "http://www.freecadweb.org"
import sys
import unittest
from os import listdir
from os.path import join