File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99
1010
1111@pytest .fixture (autouse = True )
12+ def mpl_test_settings (qt4_module , mpl_test_settings ):
13+ """
14+ Ensure qt4_module fixture is *first* fixture.
15+
16+ We override the `mpl_test_settings` fixture and depend on the `qt4_module`
17+ fixture first. It is very important that it is first, because it skips
18+ tests when Qt4 is not available, and if not, then the main
19+ `mpl_test_settings` fixture will try to switch backends before the skip can
20+ be triggered.
21+ """
22+ pass
23+
24+
25+ @pytest .fixture
1226def qt4_module ():
1327 try :
1428 import PyQt4
Original file line number Diff line number Diff line change 99
1010
1111@pytest .fixture (autouse = True )
12+ def mpl_test_settings (qt5_module , mpl_test_settings ):
13+ """
14+ Ensure qt5_module fixture is *first* fixture.
15+
16+ We override the `mpl_test_settings` fixture and depend on the `qt5_module`
17+ fixture first. It is very important that it is first, because it skips
18+ tests when Qt5 is not available, and if not, then the main
19+ `mpl_test_settings` fixture will try to switch backends before the skip can
20+ be triggered.
21+ """
22+ pass
23+
24+
25+ @pytest .fixture
1226def qt5_module ():
1327 try :
1428 import PyQt5
You can’t perform that action at this time.
0 commit comments