Skip to content

Commit 7764312

Browse files
authored
Merge pull request #4963 from blueyed/twisted
ci: rename "trial" tox factor to "twisted"
2 parents 714f211 + 543779f commit 7764312

File tree

3 files changed

+13
-21
lines changed

3 files changed

+13
-21
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
# Specialized factors for py37.
6969
# Coverage for:
7070
# - test_sys_breakpoint_interception (via pexpect).
71-
- env: TOXENV=py37-pexpect,py37-trial PYTEST_COVERAGE=1
71+
- env: TOXENV=py37-pexpect,py37-twisted PYTEST_COVERAGE=1
7272
- env: TOXENV=py37-pluggymaster-xdist
7373
- env: TOXENV=py37-freeze
7474

@@ -80,7 +80,7 @@ jobs:
8080
- stage: baseline
8181
# Coverage for:
8282
# - _pytest.unittest._handle_skip (via pexpect).
83-
env: TOXENV=py27-pexpect,py27-trial PYTEST_COVERAGE=1
83+
env: TOXENV=py27-pexpect,py27-twisted PYTEST_COVERAGE=1
8484
python: '2.7'
8585
# Use py36 here for faster baseline.
8686
- env: TOXENV=py36-xdist

azure-pipelines.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ jobs:
3030
# - numpy
3131
# - pytester's LsofFdLeakChecker (being skipped)
3232
PYTEST_COVERAGE: '1'
33-
py27-trial:
33+
py27-twisted:
3434
python.version: '2.7'
35-
tox.env: 'py27-trial'
35+
tox.env: 'py27-twisted'
3636
python.needs_vc: True
3737
py27-pluggymaster-xdist:
3838
python.version: '2.7'
3939
tox.env: 'py27-pluggymaster-xdist'
4040
# Coverage for:
4141
# - except-IOError in _attempt_to_close_capture_file for py2.
4242
# Also seen with py27-nobyte (using xdist), and py27-xdist.
43-
# But no exception with py27-pexpect,py27-trial,py27-numpy.
43+
# But no exception with py27-pexpect,py27-twisted,py27-numpy.
4444
PYTEST_COVERAGE: '1'
4545
pypy:
4646
python.version: 'pypy'
@@ -76,9 +76,9 @@ jobs:
7676
py37-linting/docs/doctesting:
7777
python.version: '3.7'
7878
tox.env: 'linting,docs,doctesting'
79-
py37-trial/numpy:
79+
py37-twisted/numpy:
8080
python.version: '3.7'
81-
tox.env: 'py37-trial,py37-numpy'
81+
tox.env: 'py37-twisted,py37-numpy'
8282
py37-pluggymaster-xdist:
8383
python.version: '3.7'
8484
tox.env: 'py37-pluggymaster-xdist'

tox.ini

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ envlist =
1313
py38
1414
pypy
1515
pypy3
16-
{py27,py37}-{pexpect,xdist,trial,numpy,pluggymaster}
16+
{py27,py37}-{pexpect,xdist,twisted,numpy,pluggymaster}
1717
py27-nobyte-xdist
1818
doctesting
1919
py37-freeze
@@ -26,7 +26,7 @@ commands =
2626
coverage: coverage report
2727
passenv = USER USERNAME COVERAGE_* TRAVIS PYTEST_ADDOPTS
2828
setenv =
29-
_PYTEST_TOX_DEFAULT_POSARGS={env:_PYTEST_TOX_POSARGS_LSOF:} {env:_PYTEST_TOX_POSARGS_PEXPECT:} {env:_PYTEST_TOX_POSARGS_XDIST:}
29+
_PYTEST_TOX_DEFAULT_POSARGS={env:_PYTEST_TOX_POSARGS_LSOF:} {env:_PYTEST_TOX_POSARGS_PEXPECT:} {env:_PYTEST_TOX_POSARGS_TWISTED:} {env:_PYTEST_TOX_POSARGS_XDIST:}
3030

3131
# Configuration to run with coverage similar to Travis/Appveyor, e.g.
3232
# "tox -e py37-coverage".
@@ -42,12 +42,16 @@ setenv =
4242
pexpect: _PYTEST_TOX_PLATFORM=linux|darwin
4343
pexpect: _PYTEST_TOX_POSARGS_PEXPECT=testing/test_pdb.py testing/test_terminal.py testing/test_unittest.py
4444

45+
twisted: _PYTEST_TOX_POSARGS_TWISTED=testing/test_unittest.py
46+
4547
xdist: _PYTEST_TOX_POSARGS_XDIST=-n auto
4648
extras = testing
4749
deps =
4850
numpy: numpy
4951
pexpect: pexpect
5052
pluggymaster: git+https://github.com/pytest-dev/pluggy.git@master
53+
twisted: twisted
54+
twisted: unittest2
5155
xdist: pytest-xdist>=1.13
5256
{env:_PYTEST_TOX_EXTRA_DEP:}
5357
platform = {env:_PYTEST_TOX_PLATFORM:.*}
@@ -67,18 +71,6 @@ basepython = python3
6771
deps = pre-commit>=1.11.0
6872
commands = pre-commit run --all-files --show-diff-on-failure
6973

70-
[testenv:py27-trial]
71-
deps =
72-
{[testenv]deps}
73-
twisted
74-
unittest2
75-
commands =
76-
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest {posargs:testing/test_unittest.py}
77-
78-
[testenv:py37-trial]
79-
deps = {[testenv:py27-trial]deps}
80-
commands = {[testenv:py27-trial]commands}
81-
8274
[testenv:docs]
8375
basepython = python3
8476
skipsdist = True

0 commit comments

Comments
 (0)