mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-07 19:49:23 +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)
|
info = imp.find_module(name, path)
|
||||||
newmodule = imp.load_module(name, *info)
|
newmodule = imp.load_module(name, *info)
|
||||||
path = [os.path.dirname(newmodule.__file__)]
|
path = [os.path.dirname(newmodule.__file__)]
|
||||||
|
if info[0] is not None:
|
||||||
info[0].close()
|
info[0].close()
|
||||||
except ImportError:
|
except ImportError:
|
||||||
irc.error(msg, 'No such module %s exists.' % name)
|
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 string.translate')
|
||||||
self.assertNotError('pydoc fnmatch.fnmatch')
|
self.assertNotError('pydoc fnmatch.fnmatch')
|
||||||
self.assertNotError('pydoc socket.socket')
|
self.assertNotError('pydoc socket.socket')
|
||||||
|
self.assertNotError('pydoc logging.Logger')
|
||||||
|
|
||||||
def testZen(self):
|
def testZen(self):
|
||||||
self.assertNotError('zen')
|
self.assertNotError('zen')
|
||||||
|
Loading…
Reference in New Issue
Block a user