diff options
author | R David Murray <rdmurray@bitdance.com> | 2012-07-22 02:28:08 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2012-07-22 02:28:08 (GMT) |
commit | d4703d1d85fc00aeb8f46d945ce7b34606604992 (patch) | |
tree | ea40cee7dfc0ecadae6c1b8605275097d76c409c /Lib/test/test_argparse.py | |
parent | af418b2232e81499a81b7aa1d4879a9b594fc6a9 (diff) | |
parent | b94082a71b6b141cdcdde52a0f01b10f9334b5a8 (diff) | |
download | cpython-d4703d1d85fc00aeb8f46d945ce7b34606604992.zip cpython-d4703d1d85fc00aeb8f46d945ce7b34606604992.tar.gz cpython-d4703d1d85fc00aeb8f46d945ce7b34606604992.tar.bz2 |
Merge #12353: argparse now correctly handles null argument values.
Patch by Torsten Landschoff.
Diffstat (limited to 'Lib/test/test_argparse.py')
-rw-r--r-- | Lib/test/test_argparse.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_argparse.py b/Lib/test/test_argparse.py index e69cc40..76271a3 100644 --- a/Lib/test/test_argparse.py +++ b/Lib/test/test_argparse.py @@ -1372,6 +1372,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'])), ] |