From 722d8455dee4bb138ada2079e19e694bd9ef80d9 Mon Sep 17 00:00:00 2001 From: bjmb Date: Wed, 5 Apr 2017 11:40:44 -0400 Subject: [PATCH] Updated tox.ini to run Gevent and Eventlet tests independently --- appveyor/run_test.ps1 | 5 +++++ tox.ini | 32 +++++++++++++++++++++++++++++--- 2 files changed, 34 insertions(+), 3 deletions(-) diff --git a/appveyor/run_test.ps1 b/appveyor/run_test.ps1 index 34ba227c..553540d2 100644 --- a/appveyor/run_test.ps1 +++ b/appveyor/run_test.ps1 @@ -12,6 +12,11 @@ python -c "import platform; print(platform.architecture())" $wc = New-Object 'System.Net.WebClient' nosetests -s -v --with-ignore-docstrings --with-xunit --xunit-file=unit_results.xml .\tests\unit + +$env:MONKEY_PATCH_LOOP=1 +nosetests -s -v --with-ignore-docstrings --with-xunit --xunit-file=unit_results.xml .\tests\unit\io\test_geventreactor.py +nosetests -s -v --with-ignore-docstrings --with-xunit --xunit-file=unit_results.xml .\tests\unit\io\test_eventletreactor.py + echo "uploading unit results" $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\unit_results.xml)) diff --git a/tox.ini b/tox.ini index 3b68b73c..06bb8274 100644 --- a/tox.ini +++ b/tox.ini @@ -7,13 +7,39 @@ deps = nose PyYAML six packaging + cython + gevent + eventlet + twisted <15.5.0 [testenv] deps = {[base]deps} - cython - py{27}: gevent - twisted <15.5.0 + setenv = LIBEV_EMBED=0 CARES_EMBED=0 changedir = {envtmpdir} commands = nosetests --verbosity=2 --no-path-adjustment {toxinidir}/tests/unit/ + + +[testenv:py27] +deps = {[base]deps} + +setenv = LIBEV_EMBED=0 + CARES_EMBED=0 + MONKEY_PATCH_LOOP=1 +changedir = {envtmpdir} +commands = + nosetests --verbosity=2 --no-path-adjustment {toxinidir}/tests/unit/io/test_eventletreactor.py + nosetests --verbosity=2 --no-path-adjustment {toxinidir}/tests/unit/io/test_geventreactor.py + + +[testenv:py34] +deps = {[base]deps} + +setenv = LIBEV_EMBED=0 + CARES_EMBED=0 + MONKEY_PATCH_LOOP=1 +changedir = {envtmpdir} +commands = + nosetests --verbosity=2 --no-path-adjustment {toxinidir}/tests/unit/io/test_eventletreactor.py + nosetests --verbosity=2 --no-path-adjustment {toxinidir}/tests/unit/io/test_geventreactor.py