From 6179389df86788acd246ca3d66306735f4f08780 Mon Sep 17 00:00:00 2001 From: David Halter Date: Sun, 11 Aug 2013 20:56:01 +0430 Subject: [PATCH] make it easier to debug bugs like #220, in dynamic param searching --- jedi/dynamic.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jedi/dynamic.py b/jedi/dynamic.py index d73b9c48..2327f406 100644 --- a/jedi/dynamic.py +++ b/jedi/dynamic.py @@ -109,7 +109,8 @@ def get_directory_modules_for_name(mods, name): if entry.endswith('.py'): paths.add(d + os.path.sep + entry) - for p in paths: + for p in sorted(paths): + # make testing easier, sort it - same results on every interpreter c = check_python_file(p) if c is not None and c not in mods: yield c