#12353: argparse now correctly handles null argument values.

Patch by Torsten Landschoff.
This commit is contained in:
R David Murray 2012-07-21 22:35:00 -04:00
parent 1a2c1fbfd2
commit 056c31f9cc
3 changed files with 4 additions and 1 deletions

View file

@ -1374,6 +1374,7 @@ class TestArgumentsFromFile(TempDirMixin, ParserTestCase):
('X @hello', NS(a=None, x='X', y=['hello world!'])),
('-a B @recursive Y Z', NS(a='A', x='hello world!', y=['Y', 'Z'])),
('X @recursive Z -a B', NS(a='B', x='X', y=['hello world!', 'Z'])),
(["-a", "", "X", "Y"], NS(a='', x='X', y=['Y'])),
]