bobber6467 / python-nose

Automatically exported from code.google.com/p/python-nose
0 stars 0 forks source link

Sort plugin list before configuring them #417

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I'm looking at PluginManager.configure. Is there any reason why we shouldn't 
sort the plugin list *before* configuring each of them?

The reason why I need this is because I have 2 plugins where B.configure() 
depends on what A.configure() has set. In this case plugin A is nose-testconfig 
which sets a global "config" handle.

I attached the one-line patch and hopefully it'll make it into 1.0.1 :)

Original issue reported on code.google.com by jonsibo...@gmail.com on 9 May 2011 at 5:08

Attachments:

GoogleCodeExporter commented 8 years ago
Sounds like a good idea to me.  It was probably an oversight.  If you can add a 
test then it would immensely speed things a long.  See DEVELOPERS.txt in the 
source

Original comment by kumar.mcmillan on 9 May 2011 at 8:14