Skip to content

test_postprocessor and test_postprocessor_fail are failing in 2.10 #652

@MeggyCal

Description

@MeggyCal

Hi, thank you for this useful library! I was trying to update it, I downloaded the most recent tarball from PyPI and in my environment with Django 5.1 two tests fail:

[   26s] FAIL: test_postprocessor (easy_thumbnails.tests.test_files.FilesTest)
[   26s] use a mock image optimizing post processor doing nothing
[   26s] ----------------------------------------------------------------------
[   26s] Traceback (most recent call last):
[   26s]   File "/home/abuild/rpmbuild/BUILD/easy_thumbnails-2.10/easy_thumbnails/tests/test_files.py", line 223, in test_postprocessor
[   26s]     self.assertEqual(actual[1], 'INFO')
[   26s] AssertionError: 'ERROR' != 'INFO'
[   26s] - ERROR
[   26s] + INFO
[   26s] 
[   26s] 
[   26s] ======================================================================
[   26s] FAIL: test_postprocessor_fail (easy_thumbnails.tests.test_files.FilesTest)
[   26s] use a mock image optimizing post processor doing nothing
[   26s] ----------------------------------------------------------------------
[   26s] Traceback (most recent call last):
[   26s]   File "/home/abuild/rpmbuild/BUILD/easy_thumbnails-2.10/easy_thumbnails/tests/test_files.py", line 242, in test_postprocessor_fail
[   26s]     self.assertRegex(
[   26s] AssertionError: Regex didn't match: '^Command .+returned non-zero exit status 1.*$' not found in "Command 'easy_thumbnails/tests/mockoptim_fail.py /tmp/tmpwqxqiklg' returned non-zero exit status 2."
[   26s] 

The tests fail on pythons 3.10, 311 and 3.12, the same failure appears also with #650 applied on these pythons (I didn't test python 3.13).

Could you please take a look at it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions