SupyML: fix threading issue in test cases

master
Valentin Lorentz 2010-11-03 11:26:27 +01:00
parent 4f159105ed
commit 82db7e49ff
1 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,7 @@
###
import time
from supybot.test import *
class SupyMLTestCase(ChannelPluginTestCase):
@ -35,6 +36,7 @@ class SupyMLTestCase(ChannelPluginTestCase):
#################################
# Utilities
def _getIfAnswerIsEqual(self, msg):
time.sleep(0.5)
m = self.irc.takeMsg()
while m is not None:
if repr(m) == repr(msg):