summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Szakmeister <john@szakmeister.net>2015-06-01 06:51:54 -0400
committerJohn Szakmeister <john@szakmeister.net>2015-06-01 06:51:54 -0400
commitbd195e3d5c2a4787a4cc350abcc7bdaf52d67ed2 (patch)
treee37aa5a5c6316fce8063024c9c7daa2366678160
parente389b61387d45a1e465dce8eacb4c93877247cc6 (diff)
downloadnose-bd195e3d5c2a4787a4cc350abcc7bdaf52d67ed2.tar.gz
Fix some logging and formatting with a recent loader change.
-rw-r--r--nose/loader.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/nose/loader.py b/nose/loader.py
index 750b23d..3744e54 100644
--- a/nose/loader.py
+++ b/nose/loader.py
@@ -341,15 +341,13 @@ class TestLoader(unittest.TestLoader):
path = os.path.normcase(os.path.realpath(path))
for module_path in module_paths:
- log.debug('os.path.normcase(%r): %r', module_path,
- os.path.normcase(module_path))
-
log.debug("Load tests from module path %s?", module_path)
log.debug("path: %s os.path.realpath(%s): %s",
- path, module_path, os.path.realpath(module_path))
+ 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):
+ os.path.realpath(
+ os.path.normcase(module_path)).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):