diff --git a/Makefile b/Makefile index a9fb0876f..d6edf1893 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ fate-suite: rsync -vrltLW rsync://fate-suite.ffmpeg.org/fate-suite/ tests/assets/fate-suite/ lint: - $(PIP) install -U ruff isort pillow numpy mypy==1.19.1 pytest + $(PIP) install -U ruff isort pillow numpy mypy==2.1.0 pytest ruff format --check av examples tests setup.py isort --check-only --diff av examples tests mypy av tests diff --git a/tests/test_streams.py b/tests/test_streams.py index 1afc67222..a78952013 100644 --- a/tests/test_streams.py +++ b/tests/test_streams.py @@ -245,8 +245,8 @@ def test_data_stream(self) -> None: # Verify we can read back all the packets, ignoring empty ones packets = [p for p in container.demux(data) if bytes(p)] assert len(packets) == len(test_data) - for packet, original_data in zip(packets, test_data): - assert bytes(packet) == original_data + for read_packet, original_data in zip(packets, test_data): + assert bytes(read_packet) == original_data # Test string representation repr = f"{data_stream}"