[FEM] remove checks for Python 2
This commit is contained in:
@@ -124,13 +124,6 @@ class TestFemCommon(unittest.TestCase):
|
||||
# import all collected modules
|
||||
# fcc_print(pymodules)
|
||||
for mod in pymodules:
|
||||
# migrate modules do not import on Python 2
|
||||
if (
|
||||
mod == "femtools.migrate_app"
|
||||
or mod == "femguiutils.migrate_gui"
|
||||
) and sys.version_info.major < 3:
|
||||
continue
|
||||
|
||||
if (
|
||||
mod == "femsolver.solver_taskpanel"
|
||||
or mod == "femexamples.examplesgui"
|
||||
|
||||
@@ -129,10 +129,6 @@ class TestObjectOpen(unittest.TestCase):
|
||||
def test_femobjects_open_de9b3fb438(
|
||||
self
|
||||
):
|
||||
# migration modules do not import on Python 2 thus this can not work
|
||||
if sys.version_info.major < 3:
|
||||
return
|
||||
|
||||
# the number in method name is the FreeCAD commit the document was created with
|
||||
# https://github.com/FreeCAD/FreeCAD/commit/de9b3fb438
|
||||
# the document was created by running the object create unit test
|
||||
|
||||
@@ -175,13 +175,6 @@ class TestSolverElmer(unittest.TestCase):
|
||||
def test_ccxcantilever_faceload_1_si(
|
||||
self
|
||||
):
|
||||
if sys.version_info.major < 3:
|
||||
# TODO does not pass on Python 2
|
||||
# https://travis-ci.org/github/FreeCAD/FreeCAD/builds/707885742
|
||||
# https://api.travis-ci.org/v3/job/707885745/log.txt
|
||||
fcc_print("Python 2: test aborted.")
|
||||
return
|
||||
|
||||
fcc_print("")
|
||||
self.set_unit_schema(1) # SI-units m/kg/s
|
||||
from femexamples.ccx_cantilever_faceload import setup
|
||||
|
||||
@@ -115,13 +115,6 @@ class TestSolverZ88(unittest.TestCase):
|
||||
self,
|
||||
base_name
|
||||
):
|
||||
if sys.version_info.major < 3:
|
||||
# TODO does not pass on Python 2
|
||||
# https://travis-ci.org/github/FreeCAD/FreeCAD/builds/707780320
|
||||
# https://api.travis-ci.org/v3/job/707780323/log.txt
|
||||
fcc_print("Python 2: test aborted.")
|
||||
return
|
||||
|
||||
self.document.recompute()
|
||||
|
||||
# start
|
||||
|
||||
@@ -126,10 +126,6 @@ class TestObjectOpen(unittest.TestCase):
|
||||
def test_femobjects_open_de9b3fb438(
|
||||
self
|
||||
):
|
||||
# migration modules do not import on Python 2 thus this can not work
|
||||
if sys.version_info.major < 3:
|
||||
return
|
||||
|
||||
# the number in method name is the FreeCAD commit the document was created with
|
||||
# https://github.com/FreeCAD/FreeCAD/commit/de9b3fb438
|
||||
# the document was created by running the object create unit test
|
||||
|
||||
Reference in New Issue
Block a user