From 6ef9177a7d8a34f49483c80dfe3a8097832fe006 Mon Sep 17 00:00:00 2001 From: Travis Johnson Date: Tue, 9 Dec 2014 11:13:56 -0500 Subject: [PATCH] 2.6 compatible set syntax --- tests/test_worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_worker.py b/tests/test_worker.py index 59f0b26..6fa127f 100644 --- a/tests/test_worker.py +++ b/tests/test_worker.py @@ -325,5 +325,5 @@ class TestWorker(RQTestCase): w1 = Worker([q], name="worker1") w2 = Worker([q], name="worker2") w3 = Worker([q], name="worker1") - worker_set = {w1, w2, w3} + worker_set = set([w1, w2, w3]) self.assertEquals(len(worker_set), 2)