Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions nose/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,12 +344,10 @@ def loadTestsFromModule(self, module, path=None, discovered=False):

for module_path in module_paths:
log.debug("Load tests from module path %s?", module_path)
realpath = os.path.normcase(os.path.realpath(module_path))
log.debug("path: %s os.path.realpath(%s): %s",
path, os.path.normcase(module_path),
os.path.realpath(os.path.normcase(module_path)))
if (self.config.traverseNamespace or not path) or \
os.path.realpath(
os.path.normcase(module_path)).startswith(path):
path, os.path.normcase(module_path), realpath)
if (self.config.traverseNamespace or not path) or realpath.startswith(path):
# Egg files can be on sys.path, so make sure the path is a
# directory before trying to load from it.
if os.path.isdir(module_path):
Expand Down