Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 124 lines (109 sloc) 3.927 kb
f376841 Ben Darnell Add a config file to run tornado tests under multiple python versions wi...
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 Ben Darnell Test that tornado.database is at least importable on all supported pytho...
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 Ben Darnell Add a config file to run tornado tests under multiple python versions wi...
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.
d37ac92 Ben Darnell Add pypy-full to default envlist too
authored
16 envlist = py27-full, py27-curl, py25-full, py32, pypy, py25, py26, py26-full, py27, py32-utf8, py33, py27-opt, py32-opt, pypy-full
f376841 Ben Darnell Add a config file to run tornado tests under multiple python versions wi...
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 Ben Darnell Add configs for testing on Vagrant-managed VMs.
authored
30 basepython = python2.5
4e91f67 Ben Darnell Start using new unittest features from py27/unittest2.
authored
31 deps =
32 simplejson
33 unittest2
f376841 Ben Darnell Add a config file to run tornado tests under multiple python versions wi...
authored
34
35 [testenv:py25-full]
36 basepython = python2.5
37 deps =
677c987 Ben Darnell Test that tornado.database is at least importable on all supported pytho...
authored
38 MySQL-python
f376841 Ben Darnell Add a config file to run tornado tests under multiple python versions wi...
authored
39 pycurl
40 simplejson
3474d5f Ben Darnell Twisted is dropping python 2.5 support in their upcoming 12.2.0 release.
authored
41 # twisted is dropping python 2.5 support in 12.2.0
42 twisted<=12.1.0
4e91f67 Ben Darnell Start using new unittest features from py27/unittest2.
authored
43 unittest2
53452e8 Ben Darnell Fight bitrot in tornado.platform.twisted.
authored
44 # zope.interface (used by twisted) dropped python 2.5 support in 4.0
45 zope.interface<4.0
f376841 Ben Darnell Add a config file to run tornado tests under multiple python versions wi...
authored
46
4e91f67 Ben Darnell Start using new unittest features from py27/unittest2.
authored
47 [testenv:py26]
48 basepython = python2.6
49 deps = unittest2
50
af940f4 Ben Darnell Major update to tornado.platform.twisted.
authored
51 # py26-full deliberately runs an older version of twisted to ensure
52 # we're still compatible with the oldest version we support.
f376841 Ben Darnell Add a config file to run tornado tests under multiple python versions wi...
authored
53 [testenv:py26-full]
54 basepython = python2.6
55 deps =
677c987 Ben Darnell Test that tornado.database is at least importable on all supported pytho...
authored
56 MySQL-python
f376841 Ben Darnell Add a config file to run tornado tests under multiple python versions wi...
authored
57 pycurl
52c83a4 Ben Darnell Our tests don't work with the recently-released Twisted 11.1.0, so pin
authored
58 twisted==11.0.0
4e91f67 Ben Darnell Start using new unittest features from py27/unittest2.
authored
59 unittest2
f376841 Ben Darnell Add a config file to run tornado tests under multiple python versions wi...
authored
60
61 [testenv:py27-full]
62 basepython = python2.7
63 deps =
677c987 Ben Darnell Test that tornado.database is at least importable on all supported pytho...
authored
64 MySQL-python
f376841 Ben Darnell Add a config file to run tornado tests under multiple python versions wi...
authored
65 pycurl
d1429ff Ben Darnell Update twisted test blacklist for Twisted 12.0.0
authored
66 twisted>=12.0.0
f376841 Ben Darnell Add a config file to run tornado tests under multiple python versions wi...
authored
67
98f7797 Ben Darnell Make it possible to run the test suite with --httpclient=CurlAsyncHTTPCl...
authored
68 [testenv:py27-curl]
69 # Same as py27-full, but runs the tests with curl_httpclient by default.
70 # Note that httpclient_test is always run with both client implementations;
71 # this flag controls which client all the other tests use.
72 basepython = python2.7
73 deps =
74 MySQL-python
75 pycurl
d1429ff Ben Darnell Update twisted test blacklist for Twisted 12.0.0
authored
76 twisted>=11.1.0
98f7797 Ben Darnell Make it possible to run the test suite with --httpclient=CurlAsyncHTTPCl...
authored
77 commands = python -m tornado.test.runtests --httpclient=tornado.curl_httpclient.CurlAsyncHTTPClient {posargs:}
78
a310102 Ben Darnell Add a pypy-full test configuration.
authored
79 [testenv:pypy-full]
80 # This configuration works with pypy 1.9. pycurl installs ok but
81 # curl_httpclient doesn't work. Also note that travis-ci does not yet
82 # have support for building C extensions with pypy, so we don't try to
83 # run this configuration there.
84 basepython = pypy
85 deps =
86 MySQL-python
87 twisted>=12.1.0
677c987 Ben Darnell Test that tornado.database is at least importable on all supported pytho...
authored
88
983fb8b Ben Darnell Open template files in binary mode (to be decoded as utf8 later)
authored
89 # In python 3, opening files in text mode uses a system-dependent encoding by
90 # default. Run the tests with "C" (ascii) and "utf-8" locales to ensure
91 # we don't have hidden dependencies on this setting.
92 [testenv:py32]
93 basepython = python3.2
94 setenv = LANG=C
ec49816 Ben Darnell Fix str/bytes problems in the auth module on python 3.
authored
95 # -b turns on an extra warning when calling str(bytes), and -bb makes
96 # it an error.
97 commands = python -bb -m tornado.test.runtests {posargs:}
983fb8b Ben Darnell Open template files in binary mode (to be decoded as utf8 later)
authored
98
99 [testenv:py32-utf8]
100 basepython = python3.2
101 setenv = LANG=en_US.utf-8
102
677c987 Ben Darnell Test that tornado.database is at least importable on all supported pytho...
authored
103 # No py32-full yet: none of our dependencies currently work on python3.
e81f42b Ben Darnell Add python 3.3 (alpha) to the tox config.
authored
104
105 [testenv:py33]
106 # tox doesn't yet know "py33" by default
3df46ee Ben Darnell Merge branch 'branch2.2'
authored
107 basepython = python3.3
577e9a0 Ben Darnell Run the tests in optimized mode too to ensure that things still work
authored
108
109 # Python's optimized mode disables the assert statement, so run the
110 # tests in this mode to ensure we haven't fallen into the trap of relying
111 # on an assertion's side effects or using them for things that should be
112 # runtime errors.
113 [testenv:py27-opt]
114 basepython = python2.7
115 deps =
116 MySQL-python
117 pycurl
118 twisted>=12.0.0
119 commands = python -O -m tornado.test.runtests {posargs:}
120
121 [testenv:py32-opt]
122 basepython = python3.2
123 commands = python -O -m tornado.test.runtests {posargs:}
Something went wrong with that request. Please try again.