Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix test methods names gathering #1109

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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