Skip to content

Instantly share code, notes, and snippets.

@clayg
Created August 12, 2010 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clayg/521191 to your computer and use it in GitHub Desktop.
Save clayg/521191 to your computer and use it in GitHub Desktop.
:~/devenv/celery/src/celery/tests$ nosetests test_task.py
........EE.E.............................................
======================================================================
ERROR: test_is_due (celery.tests.test_task.TestPeriodicTask)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/clayg/workspace/celery/celery/tests/test_task.py", line 479, in test_is_due
due, remaining = p.is_due(datetime.now() - p.run_every.run_every)
AttributeError: 'datetime.timedelta' object has no attribute 'run_every'
======================================================================
ERROR: test_is_due_not_due (celery.tests.test_task.TestPeriodicTask)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/clayg/workspace/celery/celery/tests/test_task.py", line 471, in test_is_due_not_due
due, remaining = MyPeriodic().is_due(datetime.now())
File "/home/clayg/workspace/celery/celery/task/base.py", line 662, in is_due
return self.run_every.is_due(last_run_at)
AttributeError: 'datetime.timedelta' object has no attribute 'is_due'
======================================================================
ERROR: test_remaining_estimate (celery.tests.test_task.TestPeriodicTask)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/clayg/workspace/celery/celery/tests/test_task.py", line 443, in test_remaining_estimate
MyPeriodic().remaining_estimate(datetime.now()),
File "/home/clayg/workspace/celery/celery/task/base.py", line 666, in remaining_estimate
return self.run_every.remaining_estimate(last_run_at)
AttributeError: 'datetime.timedelta' object has no attribute 'remaining_estimate'
----------------------------------------------------------------------
Ran 57 tests in 0.597s
FAILED (errors=3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment