Merge pull request #210 from pytest-dev/fix-travis

Fix travis, add more recent pytest versions
This commit is contained in:
Bruno Oliveira
2017-08-09 09:52:52 -03:00
committed by GitHub
3 changed files with 13 additions and 5 deletions

View File

@@ -6,13 +6,17 @@ python:
- '3.4' - '3.4'
- '3.5' - '3.5'
- '3.6' - '3.6'
install: pip install tox-travis setuptools_scm env:
- TOXENV=py-pytest30
- TOXENV=py-pytest31
- TOXENV=py-pytest32
install: pip install tox setuptools_scm
matrix: matrix:
include: include:
# note: please use "tox --listenvs" to populate the build matrix # note: please use "tox --listenvs" to populate the build matrix
- python: "3.5" - python: "3.6"
env: TOXENV=flakes env: TOXENV=flakes
- python: "3.5" - python: "3.6"
env: TOXENV=readme env: TOXENV=readme
script: tox script: tox

View File

@@ -193,6 +193,8 @@ class TestLooponFailing:
assert 'test_one' not in remotecontrol.failures[0] assert 'test_one' not in remotecontrol.failures[0]
assert 'test_two' in remotecontrol.failures[0] assert 'test_two' in remotecontrol.failures[0]
@py.test.mark.xfail(py.test.__version__ >= "3.1",
reason="broken by pytest 3.1+")
def test_looponfail_removed_test(self, testdir): def test_looponfail_removed_test(self, testdir):
modcol = testdir.getmodulecol(""" modcol = testdir.getmodulecol("""
def test_one(): def test_one():

View File

@@ -1,8 +1,8 @@
[tox] [tox]
# if you change the envlist, please update .travis.yml file as well # if you change the envlist, please update .travis.yml file as well
envlist= envlist=
py{26,27,34,35,36}-pytest{30} py{26,27,34,35,36}-pytest{30,31,32}
py{27,35}-pytest{30}-pexpect py{27,36}-pytest{30,31,32}-pexpect
flakes flakes
readme readme
@@ -15,6 +15,8 @@ deps =
# to avoid .eggs # to avoid .eggs
setuptools_scm setuptools_scm
pytest30: pytest~=3.0.5 pytest30: pytest~=3.0.5
pytest31: pytest~=3.1.0
pytest32: pytest~=3.2.0
pexpect: pexpect pexpect: pexpect
platform= platform=
pexpect: linux|darwin pexpect: linux|darwin