Commits

Jason R. Coombs committed b49de00

Fix test client usage for irc 2.0.3 which supports Unicode natively

Comments (0)

Files changed (2)

 		],
 	),
 	install_requires=[
-		"irc>=2.0,<3.0dev",
+		"irc>=2.0.3,<3.0dev",
 		"popquotes>=1.3",
 		"excuses>=1.1.2",
 		"pyyaml",

tests/functional/test_logging.py

 		"""
 		Test that international characters get logged properly.
 		"""
-		id = str(uuid.uuid4())
-		msg = u'Я предпочитаю круассаны с рыбой. %(id)s' % vars()
-		self.client.send_message('#logged', msg.encode('utf-8'))
+		msg = u'Я предпочитаю круассаны с рыбой. {id}'.format(
+			id=str(uuid.uuid4()))
+		self.client.send_message('#logged', msg)
 		assert self.check_logs(channel='#logged', message=msg)
 
 	def test_strike_1(self):