Skip to content

Commit 709d3ce

Browse files
committedApr 14, 2016
Cleanup test application on exit
1 parent 2e515a2 commit 709d3ce

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎python/testing/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,12 @@ def start_app():
261261
s = QGISAPP.showSettings()
262262
print(s)
263263

264+
import atexit
265+
266+
@atexit.register
267+
def exitQgis():
268+
QGISAPP.exitQgis()
269+
264270
return QGISAPP
265271

266272

0 commit comments

Comments
 (0)
Please sign in to comment.