[IPython-dev] Unicode in tests

Thomas Kluyver takowl at gmail.com
Tue Feb 1 07:02:10 EST 2011


While testing the use of non-ascii characters in 0.11 recently, I found that
there are things which will fail while actually using ipython, but cannot be
made to fail in the test suite. Investigating, I found that for the test
suite, the default encoding is somehow set to utf-8 (ascii is the default
default encoding for Python 2). I don't know quite what's doing this, but it
did the same with my system version of nose (0.11.1 in Ubuntu) and with nose
1.0.0 installed in the virtualenv.

At present, I've worked round that by adding an entirely separate
unicode_tests.py file, which has to be run separately from the main iptest
test suite.

https://github.com/ipython/ipython/pull/252

Does anyone have any insight on whether this is something our test suite is
doing, something nose is doing, something that can be fixed, or something
that we have to work around?

Thanks,
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20110201/3f20adaa/attachment.html>


More information about the IPython-dev mailing list