From 2ff6f89c48143ae9101df91fe58cc61375aaca0b Mon Sep 17 00:00:00 2001 From: Ask Solem Date: Tue, 10 Sep 2013 16:58:44 +0100 Subject: [PATCH] Fixes Py3.2 tests --- kombu/tests/utilities/test_encoding.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kombu/tests/utilities/test_encoding.py b/kombu/tests/utilities/test_encoding.py index cfa61780..5b28e8a1 100644 --- a/kombu/tests/utilities/test_encoding.py +++ b/kombu/tests/utilities/test_encoding.py @@ -78,14 +78,14 @@ class test_safe_str(TestCase): with patch('sys.getdefaultencoding') as encoding: encoding.return_value = 'utf-8' self.assertEqual(default_encoding(), 'utf-8') - s = u'The quiæk fåx jømps øver the lazy dåg' + s = 'The quiæk fåx jømps øver the lazy dåg' res = safe_str(s) self.assertIsInstance(res, str) def test_when_containing_high_chars(self): with patch('sys.getdefaultencoding') as encoding: encoding.return_value = 'ascii' - s = u'The quiæk fåx jømps øver the lazy dåg' + s = 'The quiæk fåx jømps øver the lazy dåg' res = safe_str(s) self.assertIsInstance(res, str) self.assertEqual(len(s), len(res))