summaryrefslogtreecommitdiff
path: root/nose/commands.py
diff options
context:
space:
mode:
authorJason Pellerin <jpellerin@gmail.com>2007-12-22 19:00:22 +0000
committerJason Pellerin <jpellerin@gmail.com>2007-12-22 19:00:22 +0000
commit1e9e1fb6aa3a178c53ad2a29ae626926125b300f (patch)
tree9401df6aea062f37fb6d4bb61222513adf2c8ce3 /nose/commands.py
parentcd3bb6ede7025e1ed24d7a01f68533b5c5c225f6 (diff)
downloadnose-1e9e1fb6aa3a178c53ad2a29ae626926125b300f.tar.gz
MERGED 0.10.0-stable 378:411 to trunk in preparation for 0.10.1 release.
Diffstat (limited to 'nose/commands.py')
-rw-r--r--nose/commands.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/nose/commands.py b/nose/commands.py
index 80913e3..30743b4 100644
--- a/nose/commands.py
+++ b/nose/commands.py
@@ -59,7 +59,7 @@ else:
if opt._long_opts[0][2:] in option_blacklist:
continue
long_name = opt._long_opts[0][2:]
- if opt.action != 'store_true':
+ if opt.action not in ('store_true', 'store_false'):
long_name = long_name + "="
short_name = None
if opt._short_opts:
@@ -76,7 +76,10 @@ else:
user_options = get_user_options(__parser)
def initialize_options(self):
- """create the member variables, but change hyphens to underscores"""
+ """create the member variables, but change hyphens to
+ underscores
+ """
+
self.option_to_cmds = {}
for opt in self.__parser.option_list:
cmd_name = opt._long_opts[0][2:]
@@ -102,7 +105,7 @@ else:
self.distribution.fetch_build_eggs(
self.distribution.tests_require)
- argv = []
+ argv = ['nosetests']
for (option_name, cmd_name) in self.option_to_cmds.items():
if option_name in option_blacklist:
continue