[IPython-dev] Error in test_unicode for InputSplitter

Robert Kern robert.kern@gmail....
Fri Oct 29 19:35:52 CDT 2010


On 2010-10-29 18:34 , Fernando Perez wrote:
> Hey,
>
> On Fri, Oct 29, 2010 at 11:15 AM, Brian Granger<ellisonbg@gmail.com>  wrote:
>>
>>     return ''.join(buffer).encode(self.encoding)
>> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
>> 2: ordinal not in range(128)
>
> No, I don't see it here on trunk:
>
> Ran 9 test groups in 45.840s
>
> Status:
> OK
>
> Is this on your unmodified copy of trunk?  If so that's bad news,
> because it means we have a unicode problem that's platform-dependent
> :(

I can verify this test failure on OS X with an unmodified trunk. The code is 
just wrong (at least on Python 2) since it calls .encode() on a byte string, not 
a unicode string. You've never decoded it.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco



More information about the IPython-dev mailing list