Fix vars to var

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
Aarni Koskela 2023-02-24 09:26:18 +02:00 committed by GitHub
parent 43128ce716
commit 44c4e67fe1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -178,13 +178,13 @@ class TestEnvVars:
assert Image.core.get_block_size() == 2 * 1024 * 1024 assert Image.core.get_block_size() == 2 * 1024 * 1024
@pytest.mark.parametrize( @pytest.mark.parametrize(
"vars", "var",
[ [
{"PILLOW_ALIGNMENT": "15"}, {"PILLOW_ALIGNMENT": "15"},
{"PILLOW_BLOCK_SIZE": "1024"}, {"PILLOW_BLOCK_SIZE": "1024"},
{"PILLOW_BLOCKS_MAX": "wat"}, {"PILLOW_BLOCKS_MAX": "wat"},
], ],
) )
def test_warnings(self, vars): def test_warnings(self, var):
with pytest.warns(UserWarning): with pytest.warns(UserWarning):
Image._apply_env_variables(vars) Image._apply_env_variables(var)