Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 26890ea

Browse filesBrowse files
committed
Remove many unused variables in tests.
... as detected by enabling F841 in flake8. A lot of these are instantiations of figures which are not used because the test then uses the pyplot interface anyways; the figure doesn't need to be explicitly instantiated as tests always run with no preexisting figure (via an autouse fixture).
1 parent 8979b5c commit 26890ea
Copy full SHA for 26890ea
Expand file treeCollapse file tree

24 files changed

+219
-321
lines changed

‎lib/matplotlib/tests/test_agg.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_agg.py
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from matplotlib import (
88
collections, path, pyplot as plt, transforms as mtransforms, rcParams)
99
from matplotlib.image import imread
10-
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
1110
from matplotlib.figure import Figure
1211
from matplotlib.testing.decorators import image_comparison
1312

@@ -17,7 +16,6 @@ def test_repeated_save_with_alpha():
1716
# alpha of 0.25.
1817

1918
fig = Figure([1, 0.4])
20-
canvas = FigureCanvas(fig)
2119
fig.set_facecolor((0, 1, 0.4))
2220
fig.patch.set_alpha(0.25)
2321

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.