[IPython-dev] Error in test_unicode for InputSplitter

Brian Granger ellisonbg at gmail.com
Fri Oct 29 14:15:45 EDT 2010


I am seeing the following on Python 2.6, Mac OS X 10.5:

======================================================================
ERROR: test_unicode
(IPython.core.tests.test_inputsplitter.InputSplitterTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/bgranger/Documents/Computation/IPython/code/ipython/IPython/core/tests/test_inputsplitter.py",
line 353, in test_unicode
    self.isp.push("u'\xc3\xa9'")
  File "/Users/bgranger/Documents/Computation/IPython/code/ipython/IPython/core/inputsplitter.py",
line 374, in push
    self._store(lines)
  File "/Users/bgranger/Documents/Computation/IPython/code/ipython/IPython/core/inputsplitter.py",
line 607, in _store
    setattr(self, store, self._set_source(buffer))
  File "/Users/bgranger/Documents/Computation/IPython/code/ipython/IPython/core/inputsplitter.py",
line 610, in _set_source
    return ''.join(buffer).encode(self.encoding)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
2: ordinal not in range(128)

----------------------------------------------------------------------
Ran 270 tests in 1.974s

Is this a regression or a known issue?

Cheers,

Brian


-- 
Brian E. Granger, Ph.D.
Assistant Professor of Physics
Cal Poly State University, San Luis Obispo
bgranger at calpoly.edu
ellisonbg at gmail.com



More information about the IPython-dev mailing list