kennethreitz/requests — pull request #474 by danverbraganza (2012-03-08 19:24:18+00:00)
Title: Tox for testing

Hey there, maintainer dudes,

Keeping track of the setup environments for python 2 and 3 (and keeping them separate)
was driving me nuts, so I've added support for testing with tox and nosetests.

If you have tox installed--

pip install tox

Then for each environment it will build requests into its own virtualenv with its own dependencies,
run all the tests, and give you results.

Currently, this exposes that gevent is outside of the requests setup.py
(by design, I imagine) so it needs to be included seperately for
test_requests_async.py to work without throwing a RunTimeException.

Some tests in the Python 3 environment fail because

And envoy is not in the requirements of setup, despite being referenced in the test cases.

Tox is a great way to test on multiple virtual environments (and it interfaces with hudson jenkins too, if that counts as a win).

Danver Braganza