From 9c7b7142c6cd86c231ef55dd23f60f5738aea368 Mon Sep 17 00:00:00 2001 From: Thomas Robitaille Date: Tue, 27 Feb 2024 14:15:33 +0000 Subject: [PATCH] Avoid using deprecated import from glue-core --- glue_wwt/conftest.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/glue_wwt/conftest.py b/glue_wwt/conftest.py index 93485d47..4f2a0f6d 100644 --- a/glue_wwt/conftest.py +++ b/glue_wwt/conftest.py @@ -17,11 +17,12 @@ def pytest_configure(config): # WebEngine widgets require this. from pywwt.qt import WWTQtClient # noqa - from glue.utils.qt import get_qapp + from glue_qt.utils import get_qapp app = get_qapp() def pytest_unconfigure(config): global app - app.quit() + if app is not None: + app.quit() app = None