File tree 2 files changed +28
-0
lines changed 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 9
9
10
10
11
11
@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
12
26
def qt4_module ():
13
27
try :
14
28
import PyQt4
Original file line number Diff line number Diff line change 9
9
10
10
11
11
@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
12
26
def qt5_module ():
13
27
try :
14
28
import PyQt5
You can’t perform that action at this time.
0 commit comments