From 35bc4cdeffabe703a34d6058ba1a2b6c9463ce66 Mon Sep 17 00:00:00 2001 From: Ask Solem Date: Thu, 11 Nov 2010 13:08:55 +0100 Subject: [PATCH] Fixed test breaking on Python 2.4 because the repr of KeyError is different there --- kombu/tests/test_pidbox.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kombu/tests/test_pidbox.py b/kombu/tests/test_pidbox.py index c06d71e4..bc4ebbb9 100644 --- a/kombu/tests/test_pidbox.py +++ b/kombu/tests/test_pidbox.py @@ -118,7 +118,8 @@ class test_Mailbox(unittest.TestCase): raise KeyError("foo") res = node.dispatch("my_handler_name") - self.assertDictEqual(res, {"error": "KeyError('foo',)"}) + self.assertIn("error", res) + self.assertIn("KeyError(", res["error"]) def test_dispatch_replies(self): _replied = [False]