On Mon, Sep 23, 2013 at 07:14:17PM -0400, Arun Neelicattu wrote:
> - Is there some relatively easy way to at least run the unit
test suite
> against python2 and python3? Instructions work, better if we can make python
> setup.py test just do-the-right-thing provided all the system components are
> vailable. Basically if it isn't easy to test both versions, I _will_
> inevitably break one of them, so this is a blocker for me.
>
I am sure this is possible, but it might require some automagic scripts. Will
provide them as I get the time.
At the moment, I am just using a virtual environment with -p=/usr/bin/python3
The standard way to do this in the python community is with the "tox"
test runner:
http://testrun.org/tox/latest/ It is widely used.
I do not use it for my projects just because I haven't gotten around
to absorbing it into my workflow yet. I do depend on
travis-ci.org to
run my tests against py2.6, py2.7, and py3.3 after I push -- this is
quite easy to set up.