r47181 - Merge tox-reactors-8269: Add the ability to test specific reactors using the tox config
hawkowl-TA+aISz0psMTMxyoc4vAAJOcrHinNvQL0E9HWUfgJXw@public.gmane.org Thu, 7 Apr 2016 21:12:22 -0600 (MDT)
| Newsgroups | gmane.comp.python.twisted.commits |
|---|---|
| Message-ID | <[email protected]> |
Author: hawkowl
Date: Thu Apr 7 21:12:16 2016
New Revision: 47181
Added:
trunk/twisted/topfiles/8269.misc
Modified:
trunk/README.rst
trunk/tox.ini
Log:
Merge tox-reactors-8269: Add the ability to test specific reactors using the tox config
Author: hawkowl
Reviewer: adiroiban
Fixes: #8269
Modified: trunk/README.rst
==============================================================================
--- trunk/README.rst (original)
+++ trunk/README.rst Thu Apr 7 21:12:16 2016
@@ -63,6 +63,12 @@
$ tox -e py27-tests # to run the tests for Python 2.7
$ tox -e py34-tests # to run the tests for Python 3.4
+
+You can test running the test suite under the different reactors with the ``TWISTED_REACTOR`` environment variable::
+
+ $ env TWISTED_REACTOR=epoll tox -e py27-tests
+
+
Some of these tests may fail if you:
* don't have the dependencies required for a particular subsystem installed,
Modified: trunk/tox.ini
==============================================================================
--- trunk/tox.ini (original)
+++ trunk/tox.ini Thu Apr 7 21:12:16 2016
@@ -11,14 +11,12 @@
[testenv]
changedir={envtmpdir}
deps =
- ; zope.interface is love, zope.interface is life
- zope.interface
-
; Some relatively standard dependencies that we want to have
; We cannot use extras here, because it is not supported on Py3
- {tests,coverage}: pyopenssl
+ {tests,coverage}: cryptography >= 0.9
+ {tests,coverage}: pyopenssl >= 0.13
{tests,coverage}: service_identity
- {tests,coverage}: idna
+ {tests,coverage}: idna >= 0.6
{tests,coverage}: pyserial
{tests,coverage}: python-subunit
{tests,coverage}: pycrypto
@@ -40,7 +38,7 @@
narrativedocs: sphinx
commands =
- {tests,nomodules}: {envbindir}/trial {posargs:twisted}
+ {tests,nomodules}: {envbindir}/trial --reactor={env:TWISTED_REACTOR:default} {posargs:twisted}
twistedchecker: twistedchecker {posargs:twisted}
pyflakes: pyflakes {posargs:twisted}
@@ -49,7 +47,7 @@
narrativedocs: sphinx-build -aW -b html -d {toxinidir}/docs/_build {toxinidir}/docs {toxinidir}/docs/_build/
coverage: coverage erase
- coverage: coverage run --rcfile={toxinidir}/.coveragerc {envbindir}/trial --reporter=bwverbose {posargs:twisted}
+ coverage: coverage run --rcfile={toxinidir}/.coveragerc {envbindir}/trial --reactor={env:TWISTED_REACTOR:default} {posargs:twisted}
coverage: coverage report --rcfile={toxinidir}/.coveragerc
[testenv:twistedchecker]