[IPython-dev] fixing warnings in python2.6

Ondrej Certik ondrej at certik.cz
Tue Mar 17 00:00:46 EDT 2009

> That's about right, I've written tons of tests and made the testing
> machinery more robust, so it picks up more doctests as well.  But that
> number sounds right for the current trunk.

With sympy we thought it'd be nice to have some kind of hash or
something, so that one is sure that it is picking up all the tests
that it should.

We were burned by a bug in py.test that it didn't find some tests and
noone discovered it for couple months, so you can imagine how I
pleased I was to fix the code that got broken because it was not
tested just because the tests were not executed. :)

>> Which is ok, but this is a disaster:
>> $ scripts/iptest
> [...]
>> So I guess I should first install nosetests that work with python2.6.
> Ouch.  You're in uncharted waters, man: I haven't tried to set up a
> full 2.6 environment yet, to actually run the test suite there.  I've
> lightly played with ipython in 2.6 and the sets thing is gone, but I
> don't have a working nose (and twisted & friends) set up for 2.6 yet.
> Let us know how it goes!

I wrote my own test runner for sympy exactly because I wanted
something simple, that works everywhere, I am now implementing
parallel runs. Does nosetest support it?

According to this:


it doesn't. My runner is compatible with py.test and nosetests, if you
only use standard function tests. It can also pickup doctests and it
works with python2.6. It's available at in


and it has the nice green [OK] that I always wanted, if you remember.
:) I hope to polish it, so that it can be used in any project, by just
executing it in the project dir.


More information about the IPython-dev mailing list