[Python-Dev] [Python-checkins] cpython: Issue #14769: test_capi now has SkipitemTest, which cleverly checks

Larry Hastings larry at hastings.org
Fri Jun 22 21:36:39 CEST 2012


On 06/22/2012 11:21 AM, MRAB wrote:
> On 22/06/2012 17:39, Terry Reedy wrote:
>> You sensibly only test printable ascii chars, which are in the
>> contiguous range 32 to 127 inclusive. So it makes no sense to claim
>> otherwise and then deny the wrong claim, or to enlarge the range and
>> then shrink it again.
> ASCII character 127 is a control character, not a printable character.
>
>>> +        This function brute-force tests all** ASCII characters (1 
>>> to 127
>>> +        inclusive) as format units, checking to see that
>>
> There are 128 ASCII characters (0 to 127 inclusive).

Okay, message received.  I'll test from 32 to 126 inclusive.  I'm going 
to be obnoxious and code those values straight in--which I concede will 
be a maintenance nightmare should the ASCII standard change.


//arry/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20120622/283eb5bf/attachment.html>


More information about the Python-Dev mailing list