From: azv Date: Mon, 16 Dec 2019 09:40:04 +0000 (+0300) Subject: Improve code coverage X-Git-Tag: V9_5_0a1~89 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=03a6b9f3a46e8dcb4efc57877fa823e22aaaee4c;p=modules%2Fshaper.git Improve code coverage --- diff --git a/src/SketchPlugin/Test/Test3087_1.py b/src/SketchPlugin/Test/Test3087_1.py index 92a0fe448..7f9440392 100644 --- a/src/SketchPlugin/Test/Test3087_1.py +++ b/src/SketchPlugin/Test/Test3087_1.py @@ -61,3 +61,5 @@ if __name__ == "__main__": Events_Loop.loop().flush(event); assert(listener.myEventProcessed) + # explicitly remove the listener to improve code coverage + listener.__del__() diff --git a/src/SketchPlugin/Test/Test3087_2.py b/src/SketchPlugin/Test/Test3087_2.py index 4fb18ea66..632b73fb0 100644 --- a/src/SketchPlugin/Test/Test3087_2.py +++ b/src/SketchPlugin/Test/Test3087_2.py @@ -64,3 +64,5 @@ if __name__ == "__main__": Events_Loop.loop().flush(event); assert(listener.myEventProcessed) + # explicitly remove the listener to improve code coverage + listener.__del__()