From: ageay Date: Wed, 24 Apr 2013 15:36:33 +0000 (+0000) Subject: Lease constraints on getHeapMem. X-Git-Tag: V7_2_0~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=96a398cac0b071468ae8ba03f29bbd1ef7deb8d7;p=modules%2Fmed.git Lease constraints on getHeapMem. --- diff --git a/src/MEDLoader/Swig/MEDLoaderTest3.py b/src/MEDLoader/Swig/MEDLoaderTest3.py index 4595fa67f..7bd354318 100644 --- a/src/MEDLoader/Swig/MEDLoaderTest3.py +++ b/src/MEDLoader/Swig/MEDLoaderTest3.py @@ -1977,23 +1977,22 @@ class MEDLoaderTest(unittest.TestCase): self.assertIn(mm.getHeapMemorySize(),xrange(3889-100,3889+100)) ff=MEDFileField1TS() ff.setFieldNoProfileSBT(f) - self.assertIn(ff.getHeapMemorySize(),xrange(711-10,711+10)) + self.assertIn(ff.getHeapMemorySize(),xrange(711-20,711+20)) # fff=MEDFileFieldMultiTS() fff.appendFieldNoProfileSBT(f) - self.assertIn(fff.getHeapMemorySize(),xrange(743-10,743+10)) - self.assertIn(fff[-1,-1].getHeapMemorySize(),xrange(711-10,711+10)) + self.assertIn(fff.getHeapMemorySize(),xrange(743-30,743+30)) f.setTime(1.,0,-1) fff.appendFieldNoProfileSBT(f) - self.assertIn(fff.getHeapMemorySize(),xrange(1462-10,1462+10)) - self.assertIn(fff[0,-1].getHeapMemorySize(),xrange(711-10,711+10)) + self.assertIn(fff.getHeapMemorySize(),xrange(1462-50,1462+50)) + self.assertIn(fff[0,-1].getHeapMemorySize(),xrange(711-20,711+20)) f2=f[:50] f2.setTime(2.,1,-1) pfl=DataArrayInt.Range(0,50,1) ; pfl.setName("pfl") fff.appendFieldProfile(f2,mm,0,pfl) self.assertIn(fff.getHeapMemorySize(),xrange(2178-100,2178+100)) self.assertIn(fff.getProfile("pfl_NORM_QUAD4").getHeapMemorySize(),xrange(215-10,215+10)) - self.assertIn(fff[1,-1].getHeapMemorySize(),xrange(700-10,700+10)) + self.assertIn(fff[1,-1].getHeapMemorySize(),xrange(700-30,700+30)) pass def testCurveLinearMesh1(self):