From 03a6b9f3a46e8dcb4efc57877fa823e22aaaee4c Mon Sep 17 00:00:00 2001 From: azv Date: Mon, 16 Dec 2019 12:40:04 +0300 Subject: [PATCH] Improve code coverage --- src/SketchPlugin/Test/Test3087_1.py | 2 ++ src/SketchPlugin/Test/Test3087_2.py | 2 ++ 2 files changed, 4 insertions(+) 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__() -- 2.39.2