Skip to content

Commit 58c6303

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent d699a1d commit 58c6303

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Tests/test_tiff_palette.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1+
from __future__ import annotations
2+
13
import io
2-
import pytest
34

45
from PIL import Image, ImageDraw
56

67

78
def test_tiff_palette() -> None:
8-
image = Image.new('P', (3, 1))
9+
image = Image.new("P", (3, 1))
910
file = io.BytesIO()
10-
image.save(file, 'tiff')
11+
image.save(file, "tiff")
1112

1213
image = Image.open(file)
1314
draw = ImageDraw.Draw(image)
@@ -18,7 +19,7 @@ def test_tiff_palette() -> None:
1819
draw.point((1, 0), fill=COLOR_1)
1920
draw.point((2, 0), fill=COLOR_2)
2021

21-
converted_data = list(image.convert('RGB').getdata())
22+
converted_data = list(image.convert("RGB").getdata())
2223
assert len(converted_data) == 3
2324
assert converted_data[0] == COLOR_0
2425
assert converted_data[1] == COLOR_1

0 commit comments

Comments
 (0)