File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 7
7
import mpl_gui
8
8
import sys
9
9
10
+
10
11
def pytest_configure (config ):
11
12
# config is initialized here rather than in pytest.ini so that `pytest
12
13
# --pyargs matplotlib` (which would not find pytest.ini) works. The only
Original file line number Diff line number Diff line change 8
8
9
9
10
10
def test_no_pyplot ():
11
-
12
11
assert sys .modules .get ("matplotlib.pyplot" , None ) is None
13
12
14
13
@@ -75,7 +74,6 @@ class TestException(Exception):
75
74
if forgiving :
76
75
assert "start_event_loop" in fig .canvas .call_info
77
76
else :
78
-
79
77
assert isinstance (fig .canvas , FigureCanvasBase )
80
78
81
79
@@ -144,10 +142,10 @@ def test_change_labels():
144
142
145
143
def test_close_one_at_a_time ():
146
144
fr = mg .FigureRegistry (block = False )
147
- fig1 = fr .figure (label = 'a' )
148
- fig2 = fr .figure (label = 'b' )
149
- fig3 = fr .figure (label = 'c' )
150
- fr .figure (label = 'd' )
145
+ fig1 = fr .figure (label = "a" )
146
+ fig2 = fr .figure (label = "b" )
147
+ fig3 = fr .figure (label = "c" )
148
+ fr .figure (label = "d" )
151
149
assert len (fr .figures ) == 4
152
150
153
151
fr .close (fig1 )
@@ -164,5 +162,5 @@ def test_close_one_at_a_time():
164
162
assert len (fr .figures ) == 1
165
163
assert fig3 not in fr .figures
166
164
167
- fr .close (' all' )
165
+ fr .close (" all" )
168
166
assert len (fr .figures ) == 0
You can’t perform that action at this time.
0 commit comments