summaryrefslogtreecommitdiff
path: root/nose/config.py
diff options
context:
space:
mode:
authorJason Pellerin <jpellerin@gmail.com>2007-04-01 03:50:05 +0000
committerJason Pellerin <jpellerin@gmail.com>2007-04-01 03:50:05 +0000
commitc3de85eabb96d4cb4ad9eb4b8eeb6407132150eb (patch)
tree0099fedf94f1e3d1db2c407a127cd15d7b3e88e9 /nose/config.py
parent664328b1eff2855edbeeb13fc8a104d28141f933 (diff)
downloadnose-c3de85eabb96d4cb4ad9eb4b8eeb6407132150eb.tar.gz
More work on moving output capture to a plugin
Diffstat (limited to 'nose/config.py')
-rw-r--r--nose/config.py17
1 files changed, 2 insertions, 15 deletions
diff --git a/nose/config.py b/nose/config.py
index 8b94d94..bcee140 100644
--- a/nose/config.py
+++ b/nose/config.py
@@ -12,10 +12,7 @@ class Config(object):
self.testMatch = re.compile(r'(?:^|[\b_\.%s-])[Tt]est' % os.sep)
self.addPaths = True
- self.capture = True
self.detailedErrors = False
- self.debugErrors = False
- self.debugFailures = False
self.exclude = None
self.exit = True
self.includeExe = sys.platform=='win32'
@@ -39,7 +36,6 @@ class Config(object):
self.args = ()
self.testMatch = re.compile(r'(?:^|[\b_\.%s-])[Tt]est' % os.sep)
self.addPaths = not env.get('NOSE_NOPATH', False)
- self.capture = not env.get('NOSE_NOCAPTURE', False)
self.detailedErrors = env.get('NOSE_DETAILED_ERRORS', False)
self.debug = env.get('NOSE_DEBUG')
self.debugLog = env.get('NOSE_DEBUG_LOG')
@@ -117,10 +113,7 @@ class Config(object):
self.configureLogging(options)
self.addPaths = options.addPaths
- self.capture = options.capture
self.detailedErrors = options.detailedErrors
- self.debugErrors = options.debugErrors
- self.debugFailures = options.debugFailures
self.stopOnError = options.stopOnError
self.verbosity = options.verbosity
self.includeExe = options.includeExe
@@ -153,7 +146,7 @@ class Config(object):
def configureLogging(self, options):
# FIXME
- # logging.basicConfig(level=logging.DEBUG)
+ # xlogging.basicConfig(level=logging.DEBUG)
pass
def default(self):
@@ -188,8 +181,7 @@ class Config(object):
help="Log debug messages to this file "
"(default: sys.stderr)")
parser.add_option(
- "-q", "--quiet", action="store_const",
- const=0, dest="verbosity")
+ "-q", "--quiet", action="store_const", const=0, dest="verbosity")
parser.add_option(
"-w", "--where", action="append", dest="where",
help="DEPRECATED Look for tests in this directory. "
@@ -205,11 +197,6 @@ class Config(object):
help="Also run tests that match regular "
"expression [NOSE_INCLUDE]")
parser.add_option(
- "-s", "--nocapture", action="store_false",
- default=self.capture, dest="capture",
- help="Don't capture stdout (any stdout output "
- "will be printed immediately) [NOSE_NOCAPTURE]")
- parser.add_option(
"-d", "--detailed-errors", action="store_true",
default=self.detailedErrors,
dest="detailedErrors", help="Add detail to error"