@@ -11,7 +11,7 @@ envlist =
11
11
py313
12
12
py314
13
13
pypy3
14
- py39-{pexpect,xdist,unittestextras ,numpy,pluggymain,pylib}
14
+ py39-{pexpect,xdist,twisted24,twisted25,asynctest ,numpy,pluggymain,pylib}
15
15
doctesting
16
16
doctesting-coverage
17
17
plugins
@@ -36,7 +36,9 @@ description =
36
36
pexpect: against `pexpect`
37
37
pluggymain: against the bleeding edge `pluggy` from Git
38
38
pylib: against `py` lib
39
- unittestextras: against the unit test extras
39
+ twisted24: against the unit test extras with twisted prior to 24.0
40
+ twisted25: against the unit test extras with twisted 25.0 or later
41
+ asynctest: against the unit test extras with asynctest
40
42
xdist: with pytest in parallel mode
41
43
under `{basepython}`
42
44
doctesting: including doctests
@@ -51,7 +53,7 @@ passenv =
51
53
TERM
52
54
SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYTEST
53
55
setenv =
54
- _PYTEST_TOX_DEFAULT_POSARGS ={env:_PYTEST_TOX_POSARGS_DOCTESTING:} {env:_PYTEST_TOX_POSARGS_LSOF:} {env:_PYTEST_TOX_POSARGS_XDIST:}
56
+ _PYTEST_TOX_DEFAULT_POSARGS ={env:_PYTEST_TOX_POSARGS_DOCTESTING:} {env:_PYTEST_TOX_POSARGS_LSOF:} {env:_PYTEST_TOX_POSARGS_XDIST:} {env:_PYTEST_FILES:}
55
57
56
58
# See https://docs.python.org/3/library/io.html#io-encoding-warning
57
59
# If we don't enable this, neither can any of our downstream users!
@@ -66,6 +68,12 @@ setenv =
66
68
67
69
doctesting: _PYTEST_TOX_POSARGS_DOCTESTING =doc/en
68
70
71
+ # The configurations below are related only to standard unittest support.
72
+ # Run only tests from test_unittest.py.
73
+ asynctest: _PYTEST_FILES =testing/test_unittest.py
74
+ twisted24: _PYTEST_FILES =testing/test_unittest.py
75
+ twisted25: _PYTEST_FILES =testing/test_unittest.py
76
+
69
77
nobyte: PYTHONDONTWRITEBYTECODE =1
70
78
71
79
lsof: _PYTEST_TOX_POSARGS_LSOF =--lsof
79
87
pexpect: pexpect>=4.8.0
80
88
pluggymain: pluggy @ git+https://github.com/pytest-dev/pluggy.git
81
89
pylib: py>=1.8.2
82
- unittestextras: twisted
83
- unittestextras: asynctest
90
+ twisted24: twisted<25
91
+ twisted25: twisted>=25
92
+ asynctest: asynctest
84
93
xdist: pytest-xdist>=2.1.0
85
94
xdist: -e .
86
95
{env:_PYTEST_TOX_EXTRA_DEP:}
0 commit comments