mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Updated slightly to try and give a purer environment to tests.
This commit is contained in:
parent
e0e53b57d0
commit
5bc79e2503
@ -124,6 +124,7 @@ class PluginTestCase(unittest.TestCase):
|
||||
os.remove(os.path.join(conf.supybot.directories.data(),
|
||||
filename))
|
||||
ircdb.users.reload()
|
||||
ircdb.ignores.reload()
|
||||
ircdb.channels.reload()
|
||||
if self.plugins is None:
|
||||
raise ValueError, 'PluginTestCase must have a "plugins" attribute.'
|
||||
@ -154,6 +155,9 @@ class PluginTestCase(unittest.TestCase):
|
||||
# Necessary because there's a test in here that shouldn\'t run.
|
||||
return
|
||||
self.irc.die()
|
||||
ircdb.users.close()
|
||||
ircdb.ignores.close()
|
||||
ircdb.channels.close()
|
||||
gc.collect()
|
||||
|
||||
def _feedMsg(self, query, timeout=None, to=None, frm=None):
|
||||
|
Loading…
Reference in New Issue
Block a user