From 1e023aa4e6b3143498d7dd3cc0ca239238e26b64 Mon Sep 17 00:00:00 2001 From: Ask Solem Date: Tue, 6 Oct 2015 13:03:16 -0700 Subject: [PATCH] Tests passing --- kombu/tests/transport/test_redis.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kombu/tests/transport/test_redis.py b/kombu/tests/transport/test_redis.py index 1c682ef22..0f196d727 100644 --- a/kombu/tests/transport/test_redis.py +++ b/kombu/tests/transport/test_redis.py @@ -482,12 +482,12 @@ def test_receive(self): self.assertDictEqual(payload, {'hello': 'world'}) self.assertEqual(queue, 'b') - def test_receive_raises(self): + def test_receive_raises_for_connection_error(self): self.channel._in_listen = True s = self.channel.subclient = Mock() s.parse_response.side_effect = KeyError('foo') - with self.assertRaises(redis.Empty): + with self.assertRaises(KeyError): self.channel._receive() self.assertFalse(self.channel._in_listen) @@ -509,7 +509,7 @@ def test_brpop_read_raises(self): c = self.channel.client = Mock() c.parse_response.side_effect = KeyError('foo') - with self.assertRaises(redis.Empty): + with self.assertRaises(KeyError): self.channel._brpop_read() c.connection.disconnect.assert_called_with()