From 28d60f94f3b05445f976852fbe3a2ac0559991e3 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Fri, 22 Dec 2017 15:35:08 -0200 Subject: [PATCH 1/2] Fix load scope tests in pytest 3.3 Fix #260 --- testing/acceptance_test.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/testing/acceptance_test.py b/testing/acceptance_test.py index 99ee201..4daf9ff 100644 --- a/testing/acceptance_test.py +++ b/testing/acceptance_test.py @@ -860,7 +860,13 @@ def parse_tests_and_workers_from_output(lines): result = [] for line in lines: # example match: "[gw0] PASSED test_a.py::test[7]" - m = re.match(r'\[(gw\d)\]\s(.*?)\s(.*::.*)', line.strip()) + m = re.match(r''' + \[(gw\d)\] # worker + \s* + (?:\[\s*\d+%\])? # progress indicator (pytest >=3.3) + \s(.*?) # status string ("PASSED") + \s(.*::.*) # nodeid + ''', line.strip(), re.VERBOSE) if m: worker, status, nodeid = m.groups() result.append((worker, status, nodeid)) From db1fb683cf6cd76edcfaad167df9b77f870b4381 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Fri, 22 Dec 2017 15:38:07 -0200 Subject: [PATCH 2/2] Add pytest 3.3 to tox build matrix --- .travis.yml | 1 + appveyor.yml | 12 ++++++------ tox.ini | 5 +++-- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index be060c6..ef9d669 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,6 +20,7 @@ env: - TOXENV=py-pytest30 - TOXENV=py-pytest31 - TOXENV=py-pytest32 +- TOXENV=py-pytest33 install: pip install tox setuptools_scm script: tox diff --git a/appveyor.yml b/appveyor.yml index 0173af9..3c387e6 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,12 +1,12 @@ environment: matrix: # note: please use "tox --listenvs" to populate the build matrix - - TOXENV: "py27-pytest30" - - TOXENV: "py34-pytest30" - - TOXENV: "py35-pytest30" - - TOXENV: "py36-pytest30" - - TOXENV: "py27-pytest30-pexpect" - - TOXENV: "py35-pytest30-pexpect" + - TOXENV: "py27-pytest33" + - TOXENV: "py34-pytest33" + - TOXENV: "py35-pytest33" + - TOXENV: "py36-pytest33" + - TOXENV: "py27-pytest33-pexpect" + - TOXENV: "py36-pytest33-pexpect" - TOXENV: "flakes" - TOXENV: "readme" diff --git a/tox.ini b/tox.ini index 17a3138..a172964 100644 --- a/tox.ini +++ b/tox.ini @@ -1,8 +1,8 @@ [tox] # if you change the envlist, please update .travis.yml file as well envlist= - py{27,34,35,36}-pytest{30,31,32} - py{27,36}-pytest{30,31,32}-pexpect + py{27,34,35,36}-pytest{30,31,32,33} + py{27,36}-pytest{30,31,32,33}-pexpect py{27,36}-pytest{master,features} flakes readme @@ -18,6 +18,7 @@ deps = pytest30: pytest~=3.0.5 pytest31: pytest~=3.1.0 pytest32: pytest~=3.2.0 + pytest33: pytest~=3.3.0 pytestmaster: git+https://github.com/pytest-dev/pytest.git@master pytestfeatures: git+https://github.com/pytest-dev/pytest.git@features pexpect: pexpect