From: eap Date: Mon, 18 May 2020 12:36:54 +0000 (+0300) Subject: #19112 EDF - HYBRIDPLUGON_layersimprinting fails - fix area X-Git-Tag: V9_5_0b1^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a13344681c1013c01a8d5092ef3c7d968581d236;p=plugins%2Fhybridplugin.git #19112 EDF - HYBRIDPLUGON_layersimprinting fails - fix area --- diff --git a/tests/layers_imprinting.py b/tests/layers_imprinting.py index df2ef75..40b6064 100644 --- a/tests/layers_imprinting.py +++ b/tests/layers_imprinting.py @@ -252,6 +252,5 @@ for name in faces_imprinted: assert gr_2.GetMeshInfo()[7] == gr_3.GetMeshInfo()[7] # Compare mesh group with imprinting set by ids and mesh group with imprinting set by geom group - area_error_3 = abs(smesh.GetArea(gr_2)-smesh.GetArea(gr_3))/smesh.GetArea(gr_2) - assert area_error_3 < 1e-10 + assert math.isclose( smesh.GetArea(gr_2), smesh.GetArea(gr_3))