mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +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(),
|
os.remove(os.path.join(conf.supybot.directories.data(),
|
||||||
filename))
|
filename))
|
||||||
ircdb.users.reload()
|
ircdb.users.reload()
|
||||||
|
ircdb.ignores.reload()
|
||||||
ircdb.channels.reload()
|
ircdb.channels.reload()
|
||||||
if self.plugins is None:
|
if self.plugins is None:
|
||||||
raise ValueError, 'PluginTestCase must have a "plugins" attribute.'
|
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.
|
# Necessary because there's a test in here that shouldn\'t run.
|
||||||
return
|
return
|
||||||
self.irc.die()
|
self.irc.die()
|
||||||
|
ircdb.users.close()
|
||||||
|
ircdb.ignores.close()
|
||||||
|
ircdb.channels.close()
|
||||||
gc.collect()
|
gc.collect()
|
||||||
|
|
||||||
def _feedMsg(self, query, timeout=None, to=None, frm=None):
|
def _feedMsg(self, query, timeout=None, to=None, frm=None):
|
||||||
|
Loading…
Reference in New Issue
Block a user