nose-devs/nose — pull request #677 by hahnicity (2013-04-20 23:32:02+00:00)
Title: Making some pep8 fixes to nose.config. Changed the type-casting for the ...

Made pep8 fixes to config.py and test_config.py. Most importantly changed the type casting of the --verbosity option from "int" to int. I tested it on python 2.4, 2.5, 2.6 and 2.7 and it seems to work although the usage is not proper according to documentation. The change was made in order to utilize argparse with nose arguments. Coding would go something like this:

from argparse import ArgumentParser

from nose.config import Config

config = Config()
config.parserClass = ArgumentParser
config.parserClass.add_option = ArgumentParser.add_argument
parser = config.getParser()

This way we can extend nose onto newer platforms utilizing argparse

I also fixed up an existing unit test in test_config, and wrote a new one to verify that the --verbosity type works