Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Tests passing on 2.4/2.5

  • Loading branch information...
commit 9dd5ff304ff0507806d4dc4c829d3d8a1f702ab3 1 parent 44c5689
@ask authored
View
2  djcelery/schedulers.py
@@ -139,7 +139,7 @@ def schedule_changed(self):
pass # not in transaction management.
ts = self.Changes.last_change()
- if not ts or ts < make_naive(self._last_timestamp):
+ if not ts or ts < self._last_timestamp:
return False
self._last_timestamp = now()
View
4 djcelery/tests/test_schedulers.py
@@ -174,7 +174,7 @@ def test_sync_saves_last_run_at(self):
self.s.sync()
e2 = self.s.schedule[self.m2.name]
- self.assertEqual(make_aware(e2.last_run_at), last_run2)
+ self.assertEqual(e2.last_run_at, last_run2)
def test_sync_syncs_before_save(self):
@@ -196,7 +196,7 @@ def test_sync_syncs_before_save(self):
# and also sync the dirty objects.
e3 = self.s.schedule[self.m2.name]
self.assertEqual(self.s.flushed, 3)
- self.assertEqual(make_aware(e3.last_run_at), e2.last_run_at)
+ self.assertEqual(e3.last_run_at, e2.last_run_at)
self.assertListEqual(e3.args, [16, 16])
def test_sync_not_dirty(self):
View
2  tox.ini
@@ -31,6 +31,8 @@ commands = {toxinidir}/contrib/release/removepyc.sh {toxinidir}
basepython = python2.7
deps = -r{toxinidir}/requirements/default.txt
-r{toxinidir}/requirements/test.txt
+ https://github.com/ask/kombu/zipball/master
+ https://github.com/ask/celery/zipball/master
https://github.com/django/django/zipball/master
commands = {toxinidir}/contrib/release/removepyc.sh {toxinidir}
env TOXINIDIR="{toxinidir}" python setup.py citest
Please sign in to comment.
Something went wrong with that request. Please try again.