Skip to content

Commit

Permalink
removes extra plugin calls
Browse files Browse the repository at this point in the history
When we gather the plugins, we go through two list comprehensions,
but call them each time. So on the second pass, the plugins that
were called the first time can't be called again. This change
makes it so that all fo the plugins are called together in the
second list comprehension.
  • Loading branch information
phobson committed Nov 20, 2015
1 parent 0834f7e commit 3259ff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matplotlib/__init__.py
Expand Up @@ -1550,7 +1550,7 @@ def test(verbosity=1, coverage=False):

# store the old values before overriding
plugins = _get_extra_test_plugins()
plugins.extend([plugin() for plugin in nose.plugins.builtin.plugins])
plugins.extend([plugin for plugin in nose.plugins.builtin.plugins])

manager = PluginManager(plugins=[x() for x in plugins])
config = nose.config.Config(verbosity=verbosity, plugins=manager)
Expand Down

0 comments on commit 3259ff0

Please sign in to comment.