diff options
author | Jason Pellerin <jpellerin@gmail.com> | 2009-02-04 03:03:03 +0000 |
---|---|---|
committer | Jason Pellerin <jpellerin@gmail.com> | 2009-02-04 03:03:03 +0000 |
commit | 44eee6ca0607353257867c252653bdd25a9feadc (patch) | |
tree | ced47a54c2bc624b4d9e41ee097e7a5bdb0a5cac /nose/config.py | |
parent | e7c9adce0db6a6facc0c90b99a7ed040677f1bae (diff) | |
download | nose-44eee6ca0607353257867c252653bdd25a9feadc.tar.gz |
Applied patch making namespace package path traversal optional
Diffstat (limited to 'nose/config.py')
-rw-r--r-- | nose/config.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nose/config.py b/nose/config.py index 90bd5a9..a3a752d 100644 --- a/nose/config.py +++ b/nose/config.py @@ -203,6 +203,7 @@ class Config(object): self.verbosity = int(env.get('NOSE_VERBOSE', 1)) self.where = () self.workingDir = os.getcwd() + self.traverseNamespace = True self._default = self.__dict__.copy() self.update(kw) @@ -270,6 +271,7 @@ class Config(object): self.stopOnError = options.stopOnError self.verbosity = options.verbosity self.includeExe = options.includeExe + self.traverseNamespace = options.traverseNamespace self.debug = options.debug self.debugLog = options.debugLog self.loggingConfig = options.loggingConfig @@ -479,6 +481,11 @@ class Config(object): help="DO NOT look for tests in python modules that are " "executable. (The default on the windows platform is to " "do so.)") + parser.add_option( + "--no-traverse-namespace", action="store_false", + default=self.traverseNamespace, dest="traverseNamespace", + help="DO NOT traverse through all path entries of a " + "namespace package") self.plugins.loadPlugins() self.pluginOpts(parser) |