File tree Expand file tree Collapse file tree 2 files changed +5
-16
lines changed Expand file tree Collapse file tree 2 files changed +5
-16
lines changed Original file line number Diff line number Diff line change @@ -66,14 +66,8 @@ def pytest_configure(config):
66
66
config .CFG_DIR = tempfile .mkdtemp ()
67
67
68
68
# Start up QApplication, if the Qt code is present
69
- try :
70
- from glue .utils import get_qapp
71
- except Exception :
72
- # Note that we catch any exception, not just ImportError, because
73
- # QtPy can raise a PythonQtError.
74
- pass
75
- else :
76
- get_qapp ()
69
+ from glue_qt .utils import get_qapp
70
+ get_qapp ()
77
71
78
72
# Force loading of plugins
79
73
from glue .main import load_plugins
@@ -89,13 +83,8 @@ def pytest_unconfigure(config):
89
83
config .CFG_DIR = CFG_DIR_ORIG
90
84
91
85
# Remove reference to QApplication to prevent segmentation fault on PySide
92
- try :
93
- from glue .utils import app
94
- app .qapp = None
95
- except Exception : # for when we run the tests without the qt directories
96
- # Note that we catch any exception, not just ImportError, because
97
- # QtPy can raise a PythonQtError.
98
- pass
86
+ from glue_qt .utils import app
87
+ app .qapp = None
99
88
100
89
if OBJGRAPH_INSTALLED and not ON_APPVEYOR :
101
90
Original file line number Diff line number Diff line change 64
64
qt =
65
65
PyQt5>=5.14
66
66
test =
67
- pytest<8.3.3
67
+ pytest
68
68
pytest-cov
69
69
pytest-faulthandler
70
70
pytest-flake8
You can’t perform that action at this time.
0 commit comments