From 8ad16701ce18d21c9839c6fdf69b0c693e9db453 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Mon, 10 Aug 2015 19:02:50 +0200 Subject: [PATCH] MoobotFactoids: Fix Python 3.2 support. --- plugins/MoobotFactoids/test.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/MoobotFactoids/test.py b/plugins/MoobotFactoids/test.py index be0ba98b7..d2c0d49ce 100644 --- a/plugins/MoobotFactoids/test.py +++ b/plugins/MoobotFactoids/test.py @@ -33,6 +33,7 @@ import time from supybot.test import * #import supybot.plugin as plugin import supybot.ircutils as ircutils +from supybot.minisix import u try: import sqlite @@ -267,10 +268,11 @@ class FactoidsTestCase(ChannelPluginTestCase): 'Key search for "foo" ' '(2 found): "foo" and "foo\'"') # Check unicode stuff - self.assertResponse(u'listkeys Б', 'No keys matching "Б" found.') - self.assertNotError(u'АБВГДЕЖ is foo') - self.assertNotError(u'АБВГДЕЖЗИ is foo') - self.assertResponse(u'listkeys Б', + self.assertResponse(u('listkeys Б'), + 'No keys matching "Б" found.') + self.assertNotError(u('АБВГДЕЖ is foo')) + self.assertNotError(u('АБВГДЕЖЗИ is foo')) + self.assertResponse(u('listkeys Б'), 'Key search for "Б" ' '(2 found): "АБВГДЕЖ" and "АБВГДЕЖЗИ"') finally: