Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 88 lines (76 sloc) 2.844 kB
f376841 @bdarnell Add a config file to run tornado tests under multiple python versions…
bdarnell authored
1 # Tox (http://codespeak.net/~hpk/tox/) is a tool for running tests
2 # in multiple virtualenvs. This configuration file will run the tornado
3 # test suite on all supported python versions. To use it, "pip install tox"
4 # and then run "tox" from this directory.
5 #
6 # See also tornado/test/run_pyversion_tests.py, which is faster but
7 # less thorough.
677c987 @bdarnell Test that tornado.database is at least importable on all supported py…
bdarnell authored
8 #
9 # On my macports-based setup, the environment variable
10 # ARCHFLAGS='-arch x86_64' must be set when building pycurl, and a
11 # symlink from mysql_config to mysql_config5 must exist when building
12 # MySQL-python.
f376841 @bdarnell Add a config file to run tornado tests under multiple python versions…
bdarnell authored
13 [tox]
14 # "-full" variants include optional dependencies, to ensure
15 # that things work both in a bare install and with all the extras.
983fb8b @bdarnell Open template files in binary mode (to be decoded as utf8 later)
bdarnell authored
16 envlist = py27-full, py27-curl, py25-full, py32, pypy, py25, py26, py26-full, py27, py32-utf8, py33
f376841 @bdarnell Add a config file to run tornado tests under multiple python versions…
bdarnell authored
17 [testenv]
18 commands = python -m tornado.test.runtests {posargs:}
19
20 # python will import relative to the current working directory by default,
21 # so cd into the tox working directory to avoid picking up the working
22 # copy of the files (especially important for 2to3).
23 changedir = {toxworkdir}
24 # Note that PYTHONPATH must not be set when running tox (and setting it
25 # with the following doesn't seem to work, since tox/virtualenv appends to
26 # PYTHONPATH)
27 #environment = PYTHONPATH=
28
29 [testenv:py25]
970b43b @bdarnell Add configs for testing on Vagrant-managed VMs.
bdarnell authored
30 basepython = python2.5
f376841 @bdarnell Add a config file to run tornado tests under multiple python versions…
bdarnell authored
31 deps = simplejson
32
33 [testenv:py25-full]
34 basepython = python2.5
35 deps =
677c987 @bdarnell Test that tornado.database is at least importable on all supported py…
bdarnell authored
36 MySQL-python
f376841 @bdarnell Add a config file to run tornado tests under multiple python versions…
bdarnell authored
37 pycurl
38 simplejson
d1429ff @bdarnell Update twisted test blacklist for Twisted 12.0.0
bdarnell authored
39 twisted>=12.0.0
f376841 @bdarnell Add a config file to run tornado tests under multiple python versions…
bdarnell authored
40
af940f4 @bdarnell Major update to tornado.platform.twisted.
bdarnell authored
41 # py26-full deliberately runs an older version of twisted to ensure
42 # we're still compatible with the oldest version we support.
f376841 @bdarnell Add a config file to run tornado tests under multiple python versions…
bdarnell authored
43 [testenv:py26-full]
44 basepython = python2.6
45 deps =
677c987 @bdarnell Test that tornado.database is at least importable on all supported py…
bdarnell authored
46 MySQL-python
f376841 @bdarnell Add a config file to run tornado tests under multiple python versions…
bdarnell authored
47 pycurl
52c83a4 @bdarnell Our tests don't work with the recently-released Twisted 11.1.0, so pin
bdarnell authored
48 twisted==11.0.0
f376841 @bdarnell Add a config file to run tornado tests under multiple python versions…
bdarnell authored
49
50 [testenv:py27-full]
51 basepython = python2.7
52 deps =
677c987 @bdarnell Test that tornado.database is at least importable on all supported py…
bdarnell authored
53 MySQL-python
f376841 @bdarnell Add a config file to run tornado tests under multiple python versions…
bdarnell authored
54 pycurl
d1429ff @bdarnell Update twisted test blacklist for Twisted 12.0.0
bdarnell authored
55 twisted>=12.0.0
f376841 @bdarnell Add a config file to run tornado tests under multiple python versions…
bdarnell authored
56
98f7797 @bdarnell Make it possible to run the test suite with --httpclient=CurlAsyncHTT…
bdarnell authored
57 [testenv:py27-curl]
58 # Same as py27-full, but runs the tests with curl_httpclient by default.
59 # Note that httpclient_test is always run with both client implementations;
60 # this flag controls which client all the other tests use.
61 basepython = python2.7
62 deps =
63 MySQL-python
64 pycurl
d1429ff @bdarnell Update twisted test blacklist for Twisted 12.0.0
bdarnell authored
65 twisted>=11.1.0
98f7797 @bdarnell Make it possible to run the test suite with --httpclient=CurlAsyncHTT…
bdarnell authored
66 commands = python -m tornado.test.runtests --httpclient=tornado.curl_httpclient.CurlAsyncHTTPClient {posargs:}
67
225bf2a @bdarnell Remove tox config for pypy with mysql.
bdarnell authored
68 # No pypy-full yet: pycurl doesn't build with pypy, and installing
69 # twisted under pypy takes a *very* long time. MySQL-python builds with
70 # pypy, but doesn't work.
677c987 @bdarnell Test that tornado.database is at least importable on all supported py…
bdarnell authored
71
983fb8b @bdarnell Open template files in binary mode (to be decoded as utf8 later)
bdarnell authored
72 # In python 3, opening files in text mode uses a system-dependent encoding by
73 # default. Run the tests with "C" (ascii) and "utf-8" locales to ensure
74 # we don't have hidden dependencies on this setting.
75 [testenv:py32]
76 basepython = python3.2
77 setenv = LANG=C
78
79 [testenv:py32-utf8]
80 basepython = python3.2
81 setenv = LANG=en_US.utf-8
82
677c987 @bdarnell Test that tornado.database is at least importable on all supported py…
bdarnell authored
83 # No py32-full yet: none of our dependencies currently work on python3.
e81f42b @bdarnell Add python 3.3 (alpha) to the tox config.
bdarnell authored
84
85 [testenv:py33]
86 # tox doesn't yet know "py33" by default
3df46ee @bdarnell Merge branch 'branch2.2'
bdarnell authored
87 basepython = python3.3
Something went wrong with that request. Please try again.