Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 415578 Details for
Bug 564250
dev-python/django-celery-3.1.16: fails python test suites
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Upstream patch to resolve test failures
django-celery-3.1.16-py3-test-failures.patch (text/plain), 1.51 KB, created by
Sam Jorna (wraeth) (RETIRED)
on 2015-10-27 09:19:18 UTC
(
hide
)
Description:
Upstream patch to resolve test failures
Filename:
MIME Type:
Creator:
Sam Jorna (wraeth) (RETIRED)
Created:
2015-10-27 09:19:18 UTC
Size:
1.51 KB
patch
obsolete
>diff --git a/djcelery/loaders.py b/djcelery/loaders.py >index c86455a..61c6d04 100644 >--- a/djcelery/loaders.py >+++ b/djcelery/loaders.py ># Patch to fix failing tests test_list_registered_tasks and ># test_apply with python3. Patch sourced from upstream ># https://github.com/celery/django-celery/issues/342 >@@ -201,7 +201,8 @@ def find_related_module(app, related_name): > return > > try: >- imp.find_module(related_name, app_path) >+ file, _, _ = imp.find_module(related_name, app_path) >+ file.close() > except ImportError: > return > >diff --git a/djcelery/views.py b/djcelery/views.py >index 34cb307..4d07e0a 100644 >--- a/djcelery/views.py >+++ b/djcelery/views.py >@@ -34,7 +34,7 @@ def task_view(task): > kwargs = kwdict(request.method == 'POST' and > request.POST or request.GET) > # no multivalue >- kwargs = dict(((k, v) for k, v in kwargs.iteritems()), **options) >+ kwargs = dict(((k, v) for k, v in kwargs.items()), **options) > result = task.apply_async(kwargs=kwargs) > return JsonResponse({'ok': 'true', 'task_id': result.task_id}) > >@@ -78,8 +78,8 @@ def task_status(request, task_id): > > def registered_tasks(request): > """View returning all defined tasks as a JSON object.""" >- return JsonResponse({'regular': tasks.regular().keys(), >- 'periodic': tasks.periodic().keys()}) >+ return JsonResponse({'regular': list(tasks.regular().keys()), >+ 'periodic': list(tasks.periodic().keys())})
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 564250
:
415576
| 415578 |
415580