Skip to content

Commit 3dcbde5

Browse files
committed
2to3 updates
1 parent a4db6b9 commit 3dcbde5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

celery/tests/app/test_amqp.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from mock import Mock
55

66
from celery.app.amqp import Queues, TaskPublisher
7+
from celery.five import keys
78
from celery.tests.case import AppCase
89

910

@@ -185,13 +186,13 @@ def test_select_add(self):
185186
q = Queues()
186187
q.select_subset(['foo', 'bar'])
187188
q.select_add('baz')
188-
self.assertItemsEqual(q._consume_from.keys(), ['foo', 'bar', 'baz'])
189+
self.assertItemsEqual(keys(q._consume_from), ['foo', 'bar', 'baz'])
189190

190191
def test_select_remove(self):
191192
q = Queues()
192193
q.select_subset(['foo', 'bar'])
193194
q.select_remove('bar')
194-
self.assertItemsEqual(q._consume_from.keys(), ['foo'])
195+
self.assertItemsEqual(keys(q._consume_from), ['foo'])
195196

196197
def test_with_ha_policy_compat(self):
197198
q = Queues(ha_policy='all')

celery/tests/utils/test_datastructures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def test_get_set_keys_values_items(self):
4040
list(x.items()),
4141
)
4242
self.assertIn('foo', list(x.keys()))
43-
self.assertIn('The quick yellow fox', x.values())
43+
self.assertIn('The quick yellow fox', list(x.values()))
4444

4545
def test_setdefault(self):
4646
x = DictAttribute(Object())

0 commit comments

Comments
 (0)