Skip to content

Commit d09bfdf

Browse files
committed
STY: Fix N813 camelcase imported as lowercase.
1 parent 99a6b8a commit d09bfdf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/matplotlib/tests/test_font_manager.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
from matplotlib.font_manager import (
1010
findfont, FontProperties, fontManager, json_dump, json_load, get_font,
11-
get_fontconfig_fonts, is_opentype_cff_font, fontManager as fm)
11+
get_fontconfig_fonts, is_opentype_cff_font)
1212
from matplotlib import rc_context
1313

1414
has_fclist = shutil.which('fc-list') is not None
@@ -67,7 +67,7 @@ def test_otf():
6767
if os.path.exists(fname):
6868
assert is_opentype_cff_font(fname)
6969

70-
otf_files = [f for f in fm.ttffiles if 'otf' in f]
70+
otf_files = [f for f in fontManager.ttffiles if 'otf' in f]
7171
for f in otf_files:
7272
with open(f, 'rb') as fd:
7373
res = fd.read(4) == b'OTTO'

lib/matplotlib/tests/test_pickle.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ def test_complete():
111111

112112
def test_no_pyplot():
113113
# tests pickle-ability of a figure not created with pyplot
114-
from matplotlib.backends.backend_pdf import FigureCanvasPdf as fc
114+
from matplotlib.backends.backend_pdf import FigureCanvasPdf
115115
from matplotlib.figure import Figure
116116

117117
fig = Figure()
118-
_ = fc(fig)
118+
_ = FigureCanvasPdf(fig)
119119
ax = fig.add_subplot(1, 1, 1)
120120
ax.plot([1, 2, 3], [1, 2, 3])
121121
pickle.dump(fig, BytesIO(), pickle.HIGHEST_PROTOCOL)

0 commit comments

Comments
 (0)