PYTHONPATH=src:student-tests .venv/bin/python - <<'PYTHON'
import subprocess
import pytest
from messenger.attachments.infrastructure import images
baseline = "fb682bc38476d785d02d4611ba4913e5f37bed62"
source = subprocess.run(
    ["git", "show", baseline + ":src/messenger/attachments/infrastructure/images.py"],
    check=True, capture_output=True, text=True,
).stdout
exec(compile(source, images.__file__, "exec"), images.__dict__)
raise SystemExit(pytest.main([
    "--confcutdir=student-tests/unit", "student-tests/unit/test_png_memory.py",
    "-k", "live_pixel_buffers", "-q", "-s", "--tb=short",
]))
PYTHON
