From 76d96b6383d0e8b64d7d695e4377d9b81c1e7f2c Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Fri, 17 Apr 2020 21:13:50 +1000 Subject: [PATCH] Removed default arguments from helper functions --- Tests/test_pickle.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Tests/test_pickle.py b/Tests/test_pickle.py index 4bf6d586a..7dd29e216 100644 --- a/Tests/test_pickle.py +++ b/Tests/test_pickle.py @@ -6,9 +6,7 @@ from PIL import Image from .helper import skip_unless_feature -def helper_pickle_file( - tmp_path, pickle, protocol=0, test_file="Tests/images/hopper.jpg", mode=None -): +def helper_pickle_file(tmp_path, pickle, protocol, test_file, mode): # Arrange with Image.open(test_file) as im: filename = str(tmp_path / "temp.pkl") @@ -25,9 +23,7 @@ def helper_pickle_file( assert im == loaded_im -def helper_pickle_string( - pickle, protocol=0, test_file="Tests/images/hopper.jpg", mode=None -): +def helper_pickle_string(pickle, protocol, test_file, mode): with Image.open(test_file) as im: if mode: im = im.convert(mode)