Python: avoid cleanip in destructor of Instance. It doesn't work right on Linux.

This commit is contained in:
Gaute Lindkvist 2019-06-06 13:48:59 +02:00
parent ea45d07b85
commit 6dbe5964a1
2 changed files with 3 additions and 4 deletions

View File

@ -106,7 +106,3 @@ class Instance:
path = os.getcwd()
self.commands.setStartDir(path=path)
def __del__(self):
if self.launched:
self.app.exit()

View File

@ -33,3 +33,6 @@ def pytest_configure(config):
if not _rips_instance:
print("Need a valid ResInsight executable to launch tests")
exit(0)
def pytest_unconfigure():
_rips_instance.app.exit()