mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-04-26 12:03:42 +03:00
Removed default arguments from helper functions
This commit is contained in:
parent
529e113505
commit
76d96b6383
|
@ -6,9 +6,7 @@ from PIL import Image
|
||||||
from .helper import skip_unless_feature
|
from .helper import skip_unless_feature
|
||||||
|
|
||||||
|
|
||||||
def helper_pickle_file(
|
def helper_pickle_file(tmp_path, pickle, protocol, test_file, mode):
|
||||||
tmp_path, pickle, protocol=0, test_file="Tests/images/hopper.jpg", mode=None
|
|
||||||
):
|
|
||||||
# Arrange
|
# Arrange
|
||||||
with Image.open(test_file) as im:
|
with Image.open(test_file) as im:
|
||||||
filename = str(tmp_path / "temp.pkl")
|
filename = str(tmp_path / "temp.pkl")
|
||||||
|
@ -25,9 +23,7 @@ def helper_pickle_file(
|
||||||
assert im == loaded_im
|
assert im == loaded_im
|
||||||
|
|
||||||
|
|
||||||
def helper_pickle_string(
|
def helper_pickle_string(pickle, protocol, test_file, mode):
|
||||||
pickle, protocol=0, test_file="Tests/images/hopper.jpg", mode=None
|
|
||||||
):
|
|
||||||
with Image.open(test_file) as im:
|
with Image.open(test_file) as im:
|
||||||
if mode:
|
if mode:
|
||||||
im = im.convert(mode)
|
im = im.convert(mode)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user