[Python-modules-team] Bug#802839: django-celery: python 3 tests not invoked and break
Brian May
bam at debian.org
Sat Oct 24 01:34:37 UTC 2015
Source: django-celery
Version: 3.1.17-1
Severity: important
Probably need to be reported upstream and patched.
======================================================================
ERROR: test_apply (djcelery.tests.test_views.test_task_apply)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/brian/tree/debian/python-modules/django-celery/tests/../djcelery/tests/test_views.py", line 95, in test_apply
task_apply(kwargs={'task_name': mytask.name}) + '?x=4&y=4',
File "/usr/lib/python3/dist-packages/django/test/client.py", line 470, in get
**extra)
File "/usr/lib/python3/dist-packages/django/test/client.py", line 286, in get
return self.generic('GET', path, secure=secure, **r)
File "/usr/lib/python3/dist-packages/django/test/client.py", line 358, in generic
return self.request(**r)
File "/usr/lib/python3/dist-packages/django/test/client.py", line 440, in request
six.reraise(*exc_info)
File "/usr/lib/python3/dist-packages/django/utils/six.py", line 659, in reraise
raise value
File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 111, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/brian/tree/debian/python-modules/django-celery/tests/../djcelery/views.py", line 55, in apply
return task_view(task)(request)
File "/home/brian/tree/debian/python-modules/django-celery/tests/../djcelery/views.py", line 37, in _applier
kwargs = dict(((k, v) for k, v in kwargs.iteritems()), **options)
AttributeError: 'QueryDict' object has no attribute 'iteritems'
======================================================================
FAIL: test_discovery_with_broken (djcelery.tests.test_discovery.TestDiscovery)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/brian/tree/debian/python-modules/django-celery/tests/../djcelery/tests/test_discovery.py", line 45, in test_discovery_with_broken
self.assertEqual(log, [])
AssertionError: Lists differ: [<warnings.WarningMessage object at 0x7f2b03474c88>] != []
First list contains 1 additional elements.
First extra element 0:
{message : ResourceWarning("unclosed file <_io.TextIOWrapper name='/home/brian/tree/debian/python-modules/django-celery/tests/someapp/tasks.py' mode='r' encoding='utf-8'>",), category : 'ResourceWarning', filename : '/home/brian/tree/debian/python-modules/django-celery/tests/../djcelery/loaders.py', lineno : 204, line : None}
- [<warnings.WarningMessage object at 0x7f2b03474c88>]
+ []
----------------------------------------------------------------------
Ran 66 tests in 0.340s
FAILED (errors=2, failures=1)
-- System Information:
Debian Release: 8.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.2.0-0.bpo.1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
More information about the Python-modules-team
mailing list