From: sbh Date: Fri, 26 Dec 2014 14:19:08 +0000 (+0300) Subject: ModelDocument test corrected to avoid SWIG/Python crash X-Git-Tag: V_0.7.0_rc1~38^2^2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1dac8a1588cedf3252864550fbfe931a354b6b45;p=modules%2Fshaper.git ModelDocument test corrected to avoid SWIG/Python crash --- diff --git a/src/ModelAPI/Test/TestDocument.py b/src/ModelAPI/Test/TestDocument.py index 86b380ddd..d3693974e 100644 --- a/src/ModelAPI/Test/TestDocument.py +++ b/src/ModelAPI/Test/TestDocument.py @@ -10,7 +10,7 @@ from ModelAPI import * # from GeomDataAPI import * # from GeomAlgoAPI import * -__updated__ = "2014-12-24" +__updated__ = "2014-12-26" #========================================================================= # Creation and activation of documents @@ -38,8 +38,8 @@ aSession.finishOperation() assert(aSession.activeDocument()) assert(aSession.activeDocument().id() == "root") # check all opened docs -for aDoc in aSession.allOpenedDocuments(): - assert(aDoc) +allDocsList = aSession.allOpenedDocuments() +assert(len(allDocsList) != 0) # Activate Part_1 doc back for further testing aSession.startOperation() aSession.setActiveDocument(aSession.document("Part_1"), False)