diff options
author | Jason Pellerin <jpellerin@gmail.com> | 2007-04-27 21:10:06 +0000 |
---|---|---|
committer | Jason Pellerin <jpellerin@gmail.com> | 2007-04-27 21:10:06 +0000 |
commit | e2a4c72927ccb1c13f76ba71ca90423e557a9830 (patch) | |
tree | e656921b4745b691375cfc5d3dbdc88fb3ecc55e /nose/loader.py | |
parent | 10a1ef8fe6b190a7c5f863f40197ac96725d3f3f (diff) | |
download | nose-e2a4c72927ccb1c13f76ba71ca90423e557a9830.tar.gz |
Restored lib-first sorting to loadTestFromDir -- needs tests.
Diffstat (limited to 'nose/loader.py')
-rw-r--r-- | nose/loader.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nose/loader.py b/nose/loader.py index 66962e0..050a251 100644 --- a/nose/loader.py +++ b/nose/loader.py @@ -10,7 +10,7 @@ from nose.config import Config from nose.importer import Importer, add_path, remove_path from nose.selector import defaultSelector, TestAddress from nose.util import cmp_lineno, getpackage, isclass, isgenerator, ispackage, \ - resolve_name + match_last, resolve_name from suite import ContextSuiteFactory, ContextList, LazySuite log = logging.getLogger(__name__) @@ -75,7 +75,7 @@ class TestLoader(unittest.TestLoader): paths_added = add_path(path) entries = os.listdir(path) - entries.sort() + entries.sort(lambda a, b: match_last(a, b, self.config.testMatch)) for entry in entries: if entry.startswith('.') or entry.startswith('_'): continue |