summaryrefslogtreecommitdiff
path: root/nose
diff options
context:
space:
mode:
authorLukasz Balcerzak <lukaszbalcerzak@gmail.com>2013-05-09 17:16:46 +0200
committerLukasz Balcerzak <lukaszbalcerzak@gmail.com>2013-05-09 17:16:46 +0200
commiteccfc3b643ceb019dd324c28050e54b9b9db22a5 (patch)
tree33dade7000772914c040258d0f6709ee025bd72b /nose
parentf59cda79adc4dfa87c40a3f7939e21533caab186 (diff)
downloadnose-eccfc3b643ceb019dd324c28050e54b9b9db22a5.tar.gz
Added NOSE_IGNORE_CONFIG_FILES as env variable option
Diffstat (limited to 'nose')
-rw-r--r--nose/core.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/nose/core.py b/nose/core.py
index e57a88f..4d23e38 100644
--- a/nose/core.py
+++ b/nose/core.py
@@ -117,11 +117,18 @@ class TestProgram(unittest.TestProgram):
argv=argv, testRunner=testRunner, testLoader=testLoader,
**extra_args)
+ def getAllConfigFiles(self, env=None):
+ env = env or {}
+ if env.get('NOSE_IGNORE_CONFIG_FILES', False):
+ return []
+ else:
+ return all_config_files()
+
def makeConfig(self, env, plugins=None):
"""Load a Config, pre-filled with user config files if any are
found.
"""
- cfg_files = all_config_files()
+ cfg_files = self.getAllConfigFiles(env)
if plugins:
manager = PluginManager(plugins=plugins)
else: