nose-devs/nose — Issue #413: multiple same args passed, only the last one seen
Author: jpellerin
Created: 2011-12-14 16:10:38+00:00
State: open

What steps will reproduce the problem?
1. Create a nose plugin and implement the def options(self, parser, env=os.environ) method.
2. Add a parser option that has action="append", such as:

parser.add_option("--foo", action="append", dest="foo")

3. Run your plugin by passing multiple times the same argument, such as:

python setup.py nosetests --foo 123 --foo 456

What is the expected output? What do you see instead?

Under the .configure(self, options, config) method "options.foo" should return [123, 456] but I see [456].

What version of the product are you using? On what operating system?

>>> import nose
>>> nose.__version__
'1.0.0'

Please provide any additional information below.

I do have a setup.cfg containing a [nosetests] section with options unrelated to the "foo" option, such as with-coverage=1, ...

Google Code Info:
Issue #: 407
Author: alexandr...@gmail.com
Created On: 2011-03-25T22:06:26.000Z
Closed On: