mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-02 15:44:06 +01:00
Fixed bug with pydoc logging.Logger.
This commit is contained in:
parent
e1eb6cff8e
commit
776bad5700
@ -116,6 +116,7 @@ class Python(callbacks.Privmsg):
|
||||
info = imp.find_module(name, path)
|
||||
newmodule = imp.load_module(name, *info)
|
||||
path = [os.path.dirname(newmodule.__file__)]
|
||||
if info[0] is not None:
|
||||
info[0].close()
|
||||
except ImportError:
|
||||
irc.error(msg, 'No such module %s exists.' % name)
|
||||
|
@ -48,6 +48,7 @@ class PythonTestCase(PluginTestCase, PluginDocumentation):
|
||||
self.assertNotError('pydoc string.translate')
|
||||
self.assertNotError('pydoc fnmatch.fnmatch')
|
||||
self.assertNotError('pydoc socket.socket')
|
||||
self.assertNotError('pydoc logging.Logger')
|
||||
|
||||
def testZen(self):
|
||||
self.assertNotError('zen')
|
||||
|
Loading…
Reference in New Issue
Block a user