801
801
self.overrideAttr(trace, 'warning', captured_warning)
802
802
# Reset the flag that protect against double loading
803
803
self.overrideAttr(plugin, '_loaded', False)
805
805
plugin.load_plugins(['.'])
806
806
self.assertPluginUnknown('test_foo')
807
807
# Make sure we don't warn about the plugin ImportError since this has