From 1dac8a1588cedf3252864550fbfe931a354b6b45 Mon Sep 17 00:00:00 2001 From: sbh Date: Fri, 26 Dec 2014 17:19:08 +0300 Subject: [PATCH] ModelDocument test corrected to avoid SWIG/Python crash --- src/ModelAPI/Test/TestDocument.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 2.39.2