Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

116 lines (101 sloc) 3.727 kB
# Tox ( is a tool for running tests
# in multiple virtualenvs. This configuration file will run the tornado
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
# See also tornado/test/, which is faster but
# less thorough.
# On my macports-based setup, the environment variable
# ARCHFLAGS='-arch x86_64' must be set when building pycurl.
# "-full" variants include optional dependencies, to ensure
# that things work both in a bare install and with all the extras.
envlist = py27-full, py27-curl, py25-full, py32, pypy, py25, py26, py26-full, py27, py32-utf8, py33, py27-opt, py32-opt, pypy-full
commands = python -m tornado.test.runtests {posargs:}
# python will import relative to the current working directory by default,
# so cd into the tox working directory to avoid picking up the working
# copy of the files (especially important for 2to3).
changedir = {toxworkdir}
# Note that PYTHONPATH must not be set when running tox (and setting it
# with the following doesn't seem to work, since tox/virtualenv appends to
#environment = PYTHONPATH=
basepython = python2.5
deps =
basepython = python2.5
deps =
# twisted is dropping python 2.5 support in 12.2.0
# zope.interface (used by twisted) dropped python 2.5 support in 4.0
basepython = python2.6
deps = unittest2
# py26-full deliberately runs an older version of twisted to ensure
# we're still compatible with the oldest version we support.
basepython = python2.6
deps =
basepython = python2.7
deps =
# Same as py27-full, but runs the tests with curl_httpclient by default.
# Note that httpclient_test is always run with both client implementations;
# this flag controls which client all the other tests use.
basepython = python2.7
deps =
commands = python -m tornado.test.runtests --httpclient=tornado.curl_httpclient.CurlAsyncHTTPClient {posargs:}
# This configuration works with pypy 1.9. pycurl installs ok but
# curl_httpclient doesn't work. Also note that travis-ci does not yet
# have support for building C extensions with pypy, so we don't try to
# run this configuration there.
basepython = pypy
deps =
# In python 3, opening files in text mode uses a system-dependent encoding by
# default. Run the tests with "C" (ascii) and "utf-8" locales to ensure
# we don't have hidden dependencies on this setting.
basepython = python3.2
setenv = LANG=C
# -b turns on an extra warning when calling str(bytes), and -bb makes
# it an error.
commands = python -bb -m tornado.test.runtests {posargs:}
basepython = python3.2
setenv = LANG=en_US.utf-8
# No py32-full yet: none of our dependencies currently work on python3.
# tox doesn't yet know "py33" by default
basepython = python3.3
# Python's optimized mode disables the assert statement, so run the
# tests in this mode to ensure we haven't fallen into the trap of relying
# on an assertion's side effects or using them for things that should be
# runtime errors.
basepython = python2.7
deps =
commands = python -O -m tornado.test.runtests {posargs:}
basepython = python3.2
commands = python -O -m tornado.test.runtests {posargs:}
Jump to Line
Something went wrong with that request. Please try again.