summaryrefslogtreecommitdiff
path: root/nose/loader.py
diff options
context:
space:
mode:
authorJason Pellerin <jpellerin@gmail.com>2008-04-03 23:34:44 +0000
committerJason Pellerin <jpellerin@gmail.com>2008-04-03 23:34:44 +0000
commite0899ff6c66c2e13a773ce47e1d6e07ab6e0c506 (patch)
tree0cc33c86bdf66034384a7b0a8893fa4c2f244fe9 /nose/loader.py
parent73f35bb633aebc8f0001a384c155ad0df82ad8c2 (diff)
downloadnose-e0899ff6c66c2e13a773ce47e1d6e07ab6e0c506.tar.gz
Applied patch from issue 82
Diffstat (limited to 'nose/loader.py')
-rw-r--r--nose/loader.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/nose/loader.py b/nose/loader.py
index 6f7231a..0099bd9 100644
--- a/nose/loader.py
+++ b/nose/loader.py
@@ -130,7 +130,9 @@ class TestLoader(unittest.TestLoader):
entries = os.listdir(path)
entries.sort(lambda a, b: match_last(a, b, self.config.testMatch))
for entry in entries:
- if entry.startswith('.') or entry.startswith('_'):
+ # this hard-coded initial-dot test will be removed:
+ # http://code.google.com/p/python-nose/issues/detail?id=82
+ if entry.startswith('.'):
continue
entry_path = op_abspath(op_join(path, entry))
is_file = op_isfile(entry_path)
@@ -141,6 +143,10 @@ class TestLoader(unittest.TestLoader):
else:
is_dir = op_isdir(entry_path)
if is_dir:
+ # this hard-coded initial-underscore test will be removed:
+ # http://code.google.com/p/python-nose/issues/detail?id=82
+ if entry.startswith('_'):
+ continue
wanted = self.selector.wantDirectory(entry_path)
is_package = ispackage(entry_path)
if wanted: