Python : Avoid closing existing ResInsight when pytest is closing down

This commit is contained in:
Magne Sjaastad
2019-07-30 11:55:13 +02:00
parent e54d42a0da
commit 4e33b7454f

View File

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