[2.2.0] flaky `test/test_art_resize.py`
- Dominant language
- Python
- Stars
- 15.7k
- Forks
- 2.1k
- Avg merge
- 4d 21h
- Merged PRs (30d)
- 31
Description
```
[gw11] linux -- Python 3.13.1 /var/tmp/portage/media-sound/beets-2.2.0/work/beets-2.2.0_python3.13/install/usr/bin/python3.13
self =
@unittest.skipUnless(PILBackend.available(), "PIL not available")
def test_pil_file_deinterlace(self):
"""Test PIL deinterlace function.
Check if the `PILBackend.deinterlace()` function returns images
that are non-progressive
"""
path = PILBackend().deinterlace(self.IMG_225x225)
from PIL import Image
with Image.open(path) as img:
> assert "progression" not in img.info
E AssertionError: assert 'progression' not in {'jfif': 257, 'jfif_density': (1, 1), 'jfif_unit': 0, 'jfif_version': (1, 1), ...}
E + where {'jfif': 257, 'jfif_density': (1, 1), 'jfif_unit': 0, 'jfif_version': (1, 1), ...} = .info
Image =
img =
path = b'/var/tmp/portage/media-sound/beets-2.2.0/work/beets-2.2.0/test/rsrc/abbey.jpg'
self =
test/test_art_resize.py:127: AssertionError
```
* OS: Gentoo Linux
* Python version: 3.13
* beets version: 2.2.0
* Turning off plugins made problem go away (yes/no): N/A
* Pillow: `dev-python/pillow-11.0.0-r1::gentoo`
This test does not run in CI on Ubuntu, so I'm unsure if this is a downstream environment issue or if something is broken in the package:
```
SKIPPED [1] test/test_art_resize.py:116: PIL not available
SKIPPED [1] test/test_art_resize.py:106: PIL not available
```
I'm going to skip the test downstream for now but we probably need to get CI working.
Contributor guide
Assessment
This issue has not been assessed yet.