Skip to content

Commit

Permalink
Change variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
mondeja committed Apr 15, 2021
1 parent 377f7d3 commit d48443d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_fx.py
Original file line number Diff line number Diff line change
Expand Up @@ -975,7 +975,7 @@ def test_rotate_supported_PIL_kwargs(
new_PIL_rotate_kwargs_supported,
)

with pytest.warns(UserWarning) as records:
with pytest.warns(UserWarning) as record:
BitmapClip([["R", "G", "B"]], fps=1).fx(
rotate_module.rotate,
45,
Expand All @@ -985,12 +985,12 @@ def test_rotate_supported_PIL_kwargs(
)

# assert number of warnings
assert len(records.list) == len(unsupported_kwargs)
assert len(record.list) == len(unsupported_kwargs)

# assert messages contents
messages = []
for record in records.list:
messages.append(record.message.args[0])
for warning in record.list:
messages.append(warning.message.args[0])

for unsupported_kwarg in unsupported_kwargs:
expected_message = (
Expand Down

0 comments on commit d48443d

Please sign in to comment.