From c9b6b56244e7bc61c6eebbdc85fd7fa21e1f4e12 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Mon, 21 Jan 2013 21:09:50 +0100 Subject: [PATCH] Utilities: Fix encoding in tests. --- plugins/Utilities/test.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/Utilities/test.py b/plugins/Utilities/test.py index 983e1f7ff..d595c7590 100644 --- a/plugins/Utilities/test.py +++ b/plugins/Utilities/test.py @@ -1,3 +1,4 @@ +# -*- coding: utf8 -*- ### # Copyright (c) 2002-2004, Jeremiah Fincher # All rights reserved. @@ -45,8 +46,8 @@ class UtilitiesTestCase(PluginTestCase): def testEcho(self): self.assertHelp('echo') self.assertResponse('echo foo', 'foo') - self.assertResponse('echo 好', '好') - self.assertResponse('echo "好"', '好') + self.assertResponse(u'echo 好', '好') + self.assertResponse(u'echo "好"', '好') def testEchoDollarOneRepliesDollarOne(self): self.assertResponse('echo $1', '$1')