Daniel Hahler
4290cacb86
Merge pull request #4864 from blueyed/isort-cfg
...
Add config for isort
2019-03-01 18:44:56 +01:00
Daniel Hahler
f0d7773ffa
tox: split default posargs in multiple env vars
...
This is required for combining.
Use it for new lsof facor also.
2019-03-01 16:49:51 +01:00
Daniel Hahler
75e1fde668
tox.ini: add config for isort
2019-03-01 14:24:18 +01:00
Daniel Hahler
c30ab1014e
tox: add generic nobyte and numpy factors
...
Remove `py27-nobyte` from tox.ini, which was using xdist already.
Therefore this also removes `py27-xdist` from Travis.
"nobyte" was added in 036557ac
to test that test_assertrewrite.py works
with a global PYTHONDONTWRITEBYTECODE=1 setting.
"numpy" is only a special dependency, and can be run together with
nobyte/xdist.
2019-03-01 09:12:16 +01:00
Daniel Hahler
1e2810e07d
tox: generic pexpect factor
2019-02-27 11:48:22 +01:00
Bruno Oliveira
2e89812fad
Add unittest2 testing to trial environment
...
Just noticed that `test_usefixtures_marker_on_unittest` is parametrized
for unittest2, but no environment ever installed that library.
2019-02-24 13:21:00 -03:00
Bruno Oliveira
9cb504ca9a
Add same environments to Azure as have in AppVeyor, except py37-freeze
...
py37-freeze will be tackled in https://github.com/pytest-dev/pytest/issues/4807
2019-02-18 17:23:39 -03:00
Daniel Hahler
71373b04b0
tox: add generic xdist factor
...
Cherry-picked from features.
Conflicts:
tox.ini
2019-02-15 17:54:44 +01:00
Bruno Oliveira
04a941c818
Pass PYTEST_ADDOPTS to tox envs [skip travis] [skip appveyor]
2019-02-12 20:31:29 -02:00
Daniel Hahler
5e2d740829
tox: cleanup/revisit deps
2019-02-10 14:02:56 +01:00
Daniel Hahler
82b8ec37fc
Bump tox minversion
...
For c611a16afe
2019-02-10 13:57:49 +01:00
Daniel Hahler
fd1684e70b
tox: use deps for pluggymaster testenvs
...
https://github.com/tox-dev/tox/issues/706 has been fixed.
2019-02-10 13:53:49 +01:00
Daniel Hahler
8b92d10fb3
Merge pull request #4751 from blueyed/fix-py-freeze
...
tox: py37-freeze: use --no-use-pep517 for PyInstaller
2019-02-08 22:01:59 +01:00
Daniel Hahler
e191a65ebb
tox: py37-freeze: use --no-use-pep517 for PyInstaller
...
Fixes https://github.com/pytest-dev/pytest/issues/4750 .
2019-02-08 21:59:23 +01:00
Bruno Oliveira
9be069f899
Use isolated_build option in tox.ini
...
As per the excellent article by gaborbernat:
https://www.bernat.tech/pep-517-518/
2019-02-08 15:50:33 -02:00
Bruno Oliveira
0c5e717f43
Add py38-dev job to Travis
2019-02-06 13:11:00 -02:00
Anthony Sottile
4f38c610c3
Uninstall hypothesis in regen tox env
2019-01-06 07:53:39 -08:00
Bruno Oliveira
5a8e674e92
Add dataclasses as a regendoc dependency
2019-01-05 16:38:59 -02:00
Ronny Pfannschmidt
b258764ffe
fix docs
2018-12-21 14:02:38 +01:00
Bruno Oliveira
b73e083d9d
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2018-11-26 12:55:05 -02:00
Anthony Sottile
d219e033e9
Fix rtd by installing pygments-pytest
2018-11-24 14:48:12 -08:00
Anthony Sottile
7015801377
Highlight docs with pygments-pytest
2018-11-23 22:01:30 -08:00
Bruno Oliveira
f987b368e8
Merge pull request #3776 from alysivji/attrs-n-dataclasses
...
Detailed assert failure introspection for attrs and dataclasses objects
2018-11-22 21:25:35 -02:00
Bruno Oliveira
d52ea4b6cf
Use python 3 in 'doctesting' environment
...
We some examples now use type annotations
2018-11-19 20:06:06 -02:00
Daniel Hahler
c56cc93cbd
tox.ini: remove additionally missed mock deps
...
Ref: https://github.com/pytest-dev/pytest/pull/4415#discussion_r234452144
2018-11-18 19:37:04 +01:00
Daniel Hahler
e46f995cc7
setup.py: add "testing" extra requirement
...
Use this in tox to stream-line base testing requirements.
Closes https://github.com/pytest-dev/pytest/issues/4410 .
2018-11-18 08:55:17 +01:00
Daniel Hahler
7f990e2b9a
Merge pull request #4408 from blueyed/default-invalid-escape-sequence
...
tox.ini: do not cause SyntaxWarning with py37 [ci skip]
2018-11-17 20:08:37 +01:00
Daniel Hahler
cb1d4044e6
tox: fix/improve posargs with pexpect factor(s) [ci skip]
2018-11-17 15:35:40 +01:00
Daniel Hahler
084c36d538
tox.ini: do not cause SyntaxWarning with py37 [ci skip]
...
Do not cause a SyntaxError for something like:
> DeprecationWarning: invalid escape sequence \w
This was happening via pdb++ when it imported pygments (and that had no
compiled .pyc file).
2018-11-17 11:53:15 +01:00
Bruno Oliveira
557cb6cffe
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2018-11-13 09:01:37 -02:00
Bruno Oliveira
dc20dedbc7
Change RemovedInPytest4Warnings to errors by default
...
To keep existing tests which emit RemovedInPytest4Warnings running, decided
to go with a command line option because:
* Is harder to integrate an ini option with tests which already use an ini file
* It also marks tests which need to be removed/updated in 4.1, when
RemovedInPytest4Warning and related functionality are removed.
Fix #3737
2018-11-12 16:10:57 -02:00
Bruno Oliveira
0df5ce4082
Fix basepython for linting testenv in tox.ini
2018-11-12 14:03:04 -02:00
Daniel Hahler
935b106213
CI: use py37 instead of py36 by default
...
Closes https://github.com/pytest-dev/pytest/issues/4370 .
2018-11-12 03:16:52 +01:00
Bruno Oliveira
864d7fef30
Add back some {posargs} placeholders for pytest invocations in tox.ini
...
Those were removed by accident in a previous commits it seems
2018-10-18 21:57:11 -03:00
Bruno Oliveira
ee0a306ee4
Merge remote-tracking branch 'upstream/features' into merge-features-into-master
2018-10-16 17:41:27 -03:00
Bruno Oliveira
12edc4e7b8
Pass TRAVIS env var to test environments [skip appveyor]
...
xdist has an workaround inplace for Travis so "-n auto" works.
Fix #4162
2018-10-15 20:06:59 -03:00
Bruno Oliveira
9646a1cd7a
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2018-10-15 12:55:28 -03:00
Bruno Oliveira
6258248865
Merge pull request #4138 from blueyed/cov-pexpect
...
tox.ini: clean up changedir
2018-10-14 15:41:54 -03:00
Daniel Hahler
323c846ce6
tox.ini: fix testpaths
...
Broken recently in 307fa7a4
(features branch).
[ci skip] (since it apparently is not tested/used there)
2018-10-14 17:05:28 +02:00
Daniel Hahler
3bd9f981a2
tox.ini: clean up changedir
2018-10-14 14:33:28 +02:00
Daniel Hahler
7c380b19f3
tox.ini: passenv: COVERAGE_*
...
This is required to pass through COVERAGE_PROCESS_START etc.
2018-10-14 12:34:17 +02:00
Daniel Hahler
4a49715614
tox.ini: pexpect: use posargs; cleanup posargs
...
- no need for {posargs:testing} really
- remove `-ra`, used with addopts already
2018-10-14 00:08:46 +02:00
Daniel Hahler
307fa7a42a
tox.ini: use testpaths, cleanup other pytest options
2018-10-12 17:07:45 +02:00
Daniel Hahler
03eaad376b
tox: coverage factor: combine and report
2018-09-17 14:44:47 +02:00
Daniel Hahler
93224f8cf9
tox: remove obsolete whitelist_externals
2018-09-17 14:44:47 +02:00
Daniel Hahler
7537e94ddf
tests: use unittest.mock with py34+
...
Fixes https://github.com/pytest-dev/pytest/issues/3965 .
Has to work around https://github.com/tox-dev/tox/issues/706 .
No coverage for pluggymaster builds is OK though anyway.
2018-09-12 23:21:47 +02:00
Anthony Sottile
826adafe2e
Improve pre-commit detection for changelog filenames
2018-09-07 09:36:09 -07:00
Bruno Oliveira
c00d934b21
Merge pull request #3933 from nicoddemus/idval-hypothesis-flaky-3707
...
Use -n auto now that xdist behaves well in Travis and AppVeyor
2018-09-06 15:15:55 -03:00
Bruno Oliveira
5eb85efa14
Use -n auto now that xdist behaves well in Travis and AppVeyor
...
This hopefully fixes the flaky test_idval_hypothesis on AppVeyor
Fix #3707
2018-09-06 09:22:13 -03:00
Bruno Oliveira
8c4ca383ca
Merge remote-tracking branch 'upstream/features' into merge-features-into-master
2018-09-06 09:15:56 -03:00