homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author torsten
Recipients bethard, bjacobs, r.david.murray, torsten
Date 2011年06月24日.06:21:29
SpamBayes Score 1.6248114e-13
Marked as misclassified No
Message-id <1308896490.66.0.817811680928.issue12353@psf.upfronthosting.co.za>
In-reply-to
Content
> Your unit test isn't consistent with the other unit tests in that set, which makes me suspicious that it isn't testing what we need to test. 
That is because I did not try to understand the machinery behind the argparse unit tests completely. I did not want to create an extra unit test class just for this one test.
> Also, there are unit tests for this case further up in the test file (TestEmptyAndSpaceContainingArguments). I haven't been able to reproduce the bug.
Did you run the unit tests from my patch?
> Can you post a short program that reproduces the failure?
Here you go:
from argparse import ArgumentParser
parser = ArgumentParser(fromfile_prefix_chars="@")
parser.parse_args([""])
This gives me
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "/opt/python3/lib/python3.3/argparse.py", line 1726, in parse_args
 args, argv = self.parse_known_args(args, namespace)
 File "/opt/python3/lib/python3.3/argparse.py", line 1758, in parse_known_args
 namespace, args = self._parse_known_args(args, namespace)
 File "/opt/python3/lib/python3.3/argparse.py", line 1770, in _parse_known_args
 arg_strings = self._read_args_from_files(arg_strings)
 File "/opt/python3/lib/python3.3/argparse.py", line 2003, in _read_args_from_files
 if arg_string[0] not in self.fromfile_prefix_chars:
IndexError: string index out of range
History
Date User Action Args
2011年06月24日 06:21:30torstensetrecipients: + torsten, bethard, r.david.murray, bjacobs
2011年06月24日 06:21:30torstensetmessageid: <1308896490.66.0.817811680928.issue12353@psf.upfronthosting.co.za>
2011年06月24日 06:21:30torstenlinkissue12353 messages
2011年06月24日 06:21:29torstencreate

AltStyle によって変換されたページ (->オリジナル) /