[1.8.x] Fixed #25108 -- Fixed a test which failed on Pillow 2.9+
[1.8.x] Fixed #25108 -- Fixed a test which failed on Pillow 2.9+

Backport of a2b999dfcac9bc92513a36ec6b3033ded1561c66 from master

h4r5h1t/django-hauthy,h4r5h1t/django-hauthy,h4r5h1t/django-hauthy,h4r5h1t/django-hauthy