Skip to content

Commit 917a800

Browse files
committed
STY: trivial style changes
ran black
1 parent dc2e276 commit 917a800

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

mpl_gui/tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import mpl_gui
88
import sys
99

10+
1011
def pytest_configure(config):
1112
# config is initialized here rather than in pytest.ini so that `pytest
1213
# --pyargs matplotlib` (which would not find pytest.ini) works. The only

mpl_gui/tests/test_examples.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99

1010
def test_no_pyplot():
11-
1211
assert sys.modules.get("matplotlib.pyplot", None) is None
1312

1413

@@ -75,7 +74,6 @@ class TestException(Exception):
7574
if forgiving:
7675
assert "start_event_loop" in fig.canvas.call_info
7776
else:
78-
7977
assert isinstance(fig.canvas, FigureCanvasBase)
8078

8179

@@ -144,10 +142,10 @@ def test_change_labels():
144142

145143
def test_close_one_at_a_time():
146144
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")
151149
assert len(fr.figures) == 4
152150

153151
fr.close(fig1)
@@ -164,5 +162,5 @@ def test_close_one_at_a_time():
164162
assert len(fr.figures) == 1
165163
assert fig3 not in fr.figures
166164

167-
fr.close('all')
165+
fr.close("all")
168166
assert len(fr.figures) == 0

0 commit comments

Comments
 (0)