ipython/ipython — Issue #1063: IPython.utils test error due to missing unicodedata module
Author: jstenar
Created: 2011-11-28 19:09:16+00:00
State: open

I get the error below when running the testsuite on python2.6, windows 7, ipython master 65ac74e

It seems to be due to not being able to load unicodedata module. But I am able to import unicodedata at a regular ipython prompt.

In [1]: import unicodedata

In [2]: unicodedata.
unicodedata.UCD unicodedata.decimal unicodedata.lookup unicodedata.numeric
unicodedata.bidirectional unicodedata.decomposition unicodedata.mirrored unicodedata.ucd_3_2_0
unicodedata.category unicodedata.digit unicodedata.name unicodedata.ucnhash_CAPI
unicodedata.combining unicodedata.east_asian_width unicodedata.normalize unicodedata.unidata_version

In [2]: unicodedata.

Testsuite error:

IPython test group: IPython.utils
..................................................................................SS..E.................................
.......................................................................
======================================================================
ERROR: Failure: SyntaxError ((unicode error) \N escapes not supported (can't load unicodedata module) (test_process.py,
line 70))
----------------------------------------------------------------------
Traceback (most recent call last):
File "c:\python26\lib\site-packages\nose\loader.py", line 390, in loadTestsFromName
addr.filename, addr.module)
File "c:\python26\lib\site-packages\nose\importer.py", line 39, in importFromPath
return self.importFromDir(dir_path, fqname)
File "c:\python26\lib\site-packages\nose\importer.py", line 86, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "c:\python\external\ipython\IPython\utils\tests\test_process.py", line 70
[u'h\N{LATIN SMALL LETTER A WITH CARON}llo', [u'h\N{LATIN SMALL LETTER A WITH CARON}llo']],
SyntaxError: (unicode error) \N escapes not supported (can't load unicodedata module)