812
812
self.overrideAttr(trace, 'warning', captured_warning)
813
813
# Reset the flag that protect against double loading
814
814
self.overrideAttr(plugin, '_loaded', False)
816
816
plugin.load_plugins(['.'])
817
817
self.assertPluginUnknown('test_foo')
818
818
# Make sure we don't warn about the plugin ImportError since this has