[Python-modules-commits] [nose2] 01/08: Sorts_the_plugin_list_before_loading

Pierre-Elliott Bécue peb-guest at moszumanska.debian.org
Tue Jan 23 21:54:46 UTC 2018


This is an automated email from the git hooks/post-receive script.

peb-guest pushed a commit to branch master
in repository nose2.

commit 23d142654a3c167ee2745014de1f72b47b4c6330
Author: Pierre-Elliott Bécue <becue at crans.org>
Date:   Tue Jan 23 19:34:58 2018 +0100

    Sorts_the_plugin_list_before_loading
    
      * This avoids reproducibility issues
---
 nose2/session.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nose2/session.py b/nose2/session.py
index a034fb5..ee47c6d 100644
--- a/nose2/session.py
+++ b/nose2/session.py
@@ -137,7 +137,7 @@ class Session(object):
         exclude = set(exclude)
         all_ = (set(modules) | set(more_plugins)) - exclude
         log.debug("Loading plugin modules: %s", all_)
-        for module in all_:
+        for module in sorted(all_):
             self.loadPluginsFromModule(util.module_from_name(module))
         self.hooks.pluginsLoaded(events.PluginsLoadedEvent(self.plugins))
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/nose2.git



More information about the Python-modules-commits mailing list