diff options
author | R David Murray <rdmurray@bitdance.com> | 2012-07-22 02:20:11 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2012-07-22 02:20:11 (GMT) |
commit | b94082a71b6b141cdcdde52a0f01b10f9334b5a8 (patch) | |
tree | 785ad44680a21cd11f81883bba5b2b585daf3710 /Lib/test/test_argparse.py | |
parent | 15cd9a0be4cfa7875267a06046a8c20ab8bb3482 (diff) | |
download | cpython-b94082a71b6b141cdcdde52a0f01b10f9334b5a8.zip cpython-b94082a71b6b141cdcdde52a0f01b10f9334b5a8.tar.gz cpython-b94082a71b6b141cdcdde52a0f01b10f9334b5a8.tar.bz2 |
#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 852991c..1a72a13 100644 --- a/Lib/test/test_argparse.py +++ b/Lib/test/test_argparse.py @@ -1371,6 +1371,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'])), ] |