Summary: | dev-python/django-celery-3.1.16: fails python test suites | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sam Jorna (wraeth) (RETIRED) <wraeth> |
Component: | Current packages | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://github.com/celery/django-celery/issues/342 | ||
See Also: | https://github.com/celery/django-celery/issues/395 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
Upstream patch to resolve test failures django-celery-3.1.16.ebuild.patch |
Created attachment 415578 [details, diff]
Upstream patch to resolve test failures
Patch sourced from upstream issue report in this bugs URL.
Created attachment 415580 [details, diff]
django-celery-3.1.16.ebuild.patch
Patch for ebuild that applies django-celery-3.1.16-py3-test-failures.patch and corrects dependencies.
....................................EEEEEEEEEE.E.................. ====================================================================== ERROR: test_all_as_schedule (djcelery.tests.test_schedulers.test_DatabaseScheduler) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/tests/test_schedulers.py", line 115, in setUp obj.save() File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/models.py", line 273, in save super(PeriodicTask, self).save(*args, **kwargs) File "/usr/lib64/python3.4/site-packages/django/db/models/base.py", line 685, in save "unsaved related object '%s'." % field.name ValueError: save() prohibited to prevent data loss due to unsaved related object 'interval'. ====================================================================== ERROR: test_constructor (djcelery.tests.test_schedulers.test_DatabaseScheduler) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/tests/test_schedulers.py", line 115, in setUp obj.save() File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/models.py", line 273, in save super(PeriodicTask, self).save(*args, **kwargs) File "/usr/lib64/python3.4/site-packages/django/db/models/base.py", line 685, in save "unsaved related object '%s'." % field.name ValueError: save() prohibited to prevent data loss due to unsaved related object 'interval'. ====================================================================== ERROR: test_reserve (djcelery.tests.test_schedulers.test_DatabaseScheduler) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/tests/test_schedulers.py", line 115, in setUp obj.save() File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/models.py", line 273, in save super(PeriodicTask, self).save(*args, **kwargs) File "/usr/lib64/python3.4/site-packages/django/db/models/base.py", line 685, in save "unsaved related object '%s'." % field.name ValueError: save() prohibited to prevent data loss due to unsaved related object 'interval'. ====================================================================== ERROR: test_schedule_changed (djcelery.tests.test_schedulers.test_DatabaseScheduler) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/tests/test_schedulers.py", line 115, in setUp obj.save() File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/models.py", line 273, in save super(PeriodicTask, self).save(*args, **kwargs) File "/usr/lib64/python3.4/site-packages/django/db/models/base.py", line 685, in save "unsaved related object '%s'." % field.name ValueError: save() prohibited to prevent data loss due to unsaved related object 'interval'. ====================================================================== ERROR: test_should_sync (djcelery.tests.test_schedulers.test_DatabaseScheduler) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/tests/test_schedulers.py", line 115, in setUp obj.save() File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/models.py", line 273, in save super(PeriodicTask, self).save(*args, **kwargs) File "/usr/lib64/python3.4/site-packages/django/db/models/base.py", line 685, in save "unsaved related object '%s'." % field.name ValueError: save() prohibited to prevent data loss due to unsaved related object 'interval'. ====================================================================== ERROR: test_sync_not_dirty (djcelery.tests.test_schedulers.test_DatabaseScheduler) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/tests/test_schedulers.py", line 115, in setUp obj.save() File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/models.py", line 273, in save super(PeriodicTask, self).save(*args, **kwargs) File "/usr/lib64/python3.4/site-packages/django/db/models/base.py", line 685, in save "unsaved related object '%s'." % field.name ValueError: save() prohibited to prevent data loss due to unsaved related object 'interval'. ====================================================================== ERROR: test_sync_object_gone (djcelery.tests.test_schedulers.test_DatabaseScheduler) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/tests/test_schedulers.py", line 115, in setUp obj.save() File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/models.py", line 273, in save super(PeriodicTask, self).save(*args, **kwargs) File "/usr/lib64/python3.4/site-packages/django/db/models/base.py", line 685, in save "unsaved related object '%s'." % field.name ValueError: save() prohibited to prevent data loss due to unsaved related object 'interval'. ====================================================================== ERROR: test_sync_rollback_on_save_error (djcelery.tests.test_schedulers.test_DatabaseScheduler) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/tests/test_schedulers.py", line 115, in setUp obj.save() File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/models.py", line 273, in save super(PeriodicTask, self).save(*args, **kwargs) File "/usr/lib64/python3.4/site-packages/django/db/models/base.py", line 685, in save "unsaved related object '%s'." % field.name ValueError: save() prohibited to prevent data loss due to unsaved related object 'interval'. ====================================================================== ERROR: test_sync_saves_last_run_at (djcelery.tests.test_schedulers.test_DatabaseScheduler) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/tests/test_schedulers.py", line 115, in setUp obj.save() File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/models.py", line 273, in save super(PeriodicTask, self).save(*args, **kwargs) File "/usr/lib64/python3.4/site-packages/django/db/models/base.py", line 685, in save "unsaved related object '%s'." % field.name ValueError: save() prohibited to prevent data loss due to unsaved related object 'interval'. ====================================================================== ERROR: test_sync_syncs_before_save (djcelery.tests.test_schedulers.test_DatabaseScheduler) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/tests/test_schedulers.py", line 115, in setUp obj.save() File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/models.py", line 273, in save super(PeriodicTask, self).save(*args, **kwargs) File "/usr/lib64/python3.4/site-packages/django/db/models/base.py", line 685, in save "unsaved related object '%s'." % field.name ValueError: save() prohibited to prevent data loss due to unsaved related object 'interval'. ====================================================================== ERROR: test_track_changes (djcelery.tests.test_schedulers.test_model_PeriodicTasks) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/tests/test_schedulers.py", line 286, in test_track_changes m1.save() File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/models.py", line 273, in save super(PeriodicTask, self).save(*args, **kwargs) File "/usr/lib64/python3.4/site-packages/django/db/models/base.py", line 685, in save "unsaved related object '%s'." % field.name ValueError: save() prohibited to prevent data loss due to unsaved related object 'interval'. ---------------------------------------------------------------------- Ran 66 tests in 0.164s commit 919a19fb17521df84f592cf4a7227edf88b2ba76 Author: Ian Delaney <idella4@gentoo.org> Date: Tue Oct 27 17:53:43 2015 +0800 dev-python/django-celery: patch to fix broken tests patch from upstream submitted via the gentoo bug and runtested by 'wraeth', drop py3.3 support, add missed PYTHON_REQ_USE value for sqlite, set required bordering to django subsequent to runtesting, fixes the gentoo bug Gentoo bug: #564250 |
Created attachment 415576 [details] build.log As per upstream issue report, when built with FEATURES=test the following tests fail for python3: test_list_registered_tasks test_apply Additionally, missing dependency on dev-lang/python[sqlite] and further failed tests when built against dev-python/django-1.8.5.