[IPython-dev] Unicode in tests

Robert Kern robert.kern at gmail.com
Tue Feb 1 17:33:27 EST 2011


On 2/1/11 1:36 PM, Thomas Kluyver wrote:
> (Apologies, I have a bad habit of hitting reply instead of reply-all, so the
> last two messages didn't go to the list)
>
> If GTK is changing the default encoding, presumably there isn't an easy fix from
> our point of view? So somehow, we need to compartmentalise the tests which use
> GTK from the tests which use non-ASCII characters. Is my current strategy (main
> test suite and unicode tests) sensible, or would it make more sense to include
> unicode in the main test suite, and have any tests which imported gtk separate?
> I think the latter could be hard to enforce as new tests are added.
>
> Or am I missing some way that the tests can be combined properly?

The GTK tests may need to be separated. At startup, iptest currently will 
attempt to import gtk just to test if it exists. Perhaps it ought to exclude the 
GTK tests unless if they are explicitly requested.

-- 
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