Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3aaaad1

Browse files
committed
Fix linting errors in test_agg.py
1 parent 5760573 commit 3aaaad1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/tests/test_agg.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ def test_pil_kwargs_tiff():
248248
tags = {TiffTags.TAGS_V2[k].name: v for k, v in im.tag_v2.items()}
249249
assert tags["ImageDescription"] == "test image"
250250

251+
251252
def test_pil_kwargs_webp():
252253
plt.plot([0, 1, 2], [0, 1, 0])
253254
buf_small = io.BytesIO()
@@ -258,13 +259,13 @@ def test_pil_kwargs_webp():
258259
plt.savefig(buf_large, format="webp", pil_kwargs=pil_kwargs_high)
259260
assert buf_large.getbuffer().nbytes > buf_small.getbuffer().nbytes
260261

262+
261263
def test_webp_alpha():
262264
plt.plot([0, 1, 2], [0, 1, 0])
263265
buf = io.BytesIO()
264266
plt.savefig(buf, format="webp", transparent=True)
265267
im = Image.open(buf)
266268
assert im.mode == "RGBA"
267-
268269

269270

270271
def test_draw_path_collection_error_handling():

0 commit comments

Comments
 (0)