Source: sorl-thumbnail
Version: 12.3+git20160928-2
Severity: serious
Tags: buster sid

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/sorl-thumbnail.html

...
set -e; \
for python in python2.7 python3.5; do \
    for name in pil pgmagick imagemagick graphicsmagick; do \
        if [ $(echo $python | cut -f 1 -d .)"-$name" = "python3-pgmagick" ]; 
then continue; fi; \
        LOCPATH=/build/1st/sorl-thumbnail-12.3+git20160928/tmp-locales 
LC_ALL=en_US.UTF-8 PYTHONPATH=. LOCAL_BUILD=1 
DJANGO_SETTINGS_MODULE=tests.settings.$name $python -m pytest ; \
    done; \
done
============================= test session starts ==============================
platform linux2 -- Python 2.7.13, pytest-3.0.6, py-1.4.34, pluggy-0.4.0
django settings: tests.settings.pil (from environment variable)
rootdir: /build/1st/sorl-thumbnail-12.3+git20160928, inifile: tox.ini
plugins: django-2.9.1
collected 68 items

tests/thumbnail_tests/test_alternative_resolutions.py .
tests/thumbnail_tests/test_backends.py ............
tests/thumbnail_tests/test_commands.py ....
tests/thumbnail_tests/test_engines.py ........................xx
tests/thumbnail_tests/test_filters.py s.s.
tests/thumbnail_tests/test_kvstore.py .
tests/thumbnail_tests/test_parsers.py .....
tests/thumbnail_tests/test_storage.py ....
tests/thumbnail_tests/test_templatetags.py ........ssF

=================================== FAILURES ===================================
___________________ TemplateTestCaseClient.test_empty_error ____________________

self = <tests.thumbnail_tests.test_templatetags.TemplateTestCaseClient 
testMethod=test_empty_error>

    @unittest.skipIf(VERSION[0] == 1 and VERSION[1] in [8, 9], "Test 
incompatible with Django 1.8/1.9")
    def test_empty_error(self):
        with override_custom_settings(settings, THUMBNAIL_DEBUG=False):
            from django.core.mail import outbox
    
            client = Client()
>           response = client.get('/thumbnail9.html')

tests/thumbnail_tests/test_templatetags.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python2.7/dist-packages/django/test/client.py:536: in get
    **extra)
/usr/lib/python2.7/dist-packages/django/test/client.py:340: in get
    return self.generic('GET', path, secure=secure, **r)
/usr/lib/python2.7/dist-packages/django/test/client.py:416: in generic
    return self.request(**r)
/usr/lib/python2.7/dist-packages/django/test/client.py:501: in request
    six.reraise(*exc_info)
/usr/lib/python2.7/dist-packages/django/core/handlers/exception.py:41: in inner
    response = get_response(request)
/usr/lib/python2.7/dist-packages/django/core/handlers/base.py:249: in 
_legacy_get_response
    response = self._get_response(request)
/usr/lib/python2.7/dist-packages/django/core/handlers/base.py:187: in 
_get_response
    response = self.process_exception_by_middleware(e, request)
/usr/lib/python2.7/dist-packages/django/core/handlers/base.py:185: in 
_get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
tests/thumbnail_tests/views.py:8: in direct_to_template
    return HttpResponse(t.render(c), content_type=mimetype)
/usr/lib/python2.7/dist-packages/django/template/backends/django.py:64: in 
render
    context = make_context(context, request, 
autoescape=self.backend.engine.autoescape)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

context = [{'False': False, 'None': None, 'True': True}, {}, {}, {}]
request = None, kwargs = {'autoescape': True}

    def make_context(context, request=None, **kwargs):
        """
        Create a suitable Context from a plain dict and optionally an 
HttpRequest.
        """
        if context is not None and not isinstance(context, dict):
>           raise TypeError('context must be a dict rather than %s.' % 
> context.__class__.__name__)
E           TypeError: context must be a dict rather than RequestContext.

/usr/lib/python2.7/dist-packages/django/template/context.py:287: TypeError
========== 1 failed, 61 passed, 4 skipped, 2 xfailed in 4.17 seconds ===========
debian/rules:22: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 1

Reply via email to