Ran Benita
e3b69d4f29
Sort imports
...
Using pytest's style.
2024-04-03 00:19:31 +03:00
Ran Benita
00dc8eeaff
Remove pytest InvocationParams backward compat
...
It's available since pytest 5.2, and pytest-xdist requires pytest>=6.2.
2024-03-23 20:40:54 +02:00
Aleksandr Mezin
d1dfad3e92
Implement work-stealing scheduler ( #862 )
...
Closes #858
2023-01-11 08:38:57 -03:00
Bruno Oliveira
d7d396a7f9
Run pyupgrade --py37-plus
2022-11-05 12:01:07 -03:00
Bruno Oliveira
1fbf49909f
Remove --boxed and pytest-forked dependency
...
Fixes #468
Fixes #543
2022-10-22 07:31:34 -03:00
Anthony Sottile
1471164197
Replace usages of py.log by custom implementation ( #822 )
...
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com >
2022-10-22 07:26:01 -03:00
Bruno Oliveira
25cc1a4119
Replace py.path.local usages by pathlib.Path
2022-10-21 22:54:17 -03:00
Anthony Sottile
42024f374a
remove py._pydir as rsync candidate
2022-10-21 16:09:14 -07:00
Ran Benita
b85b71cd22
Add explicit pytest.hookspec/hookimpl annotations, avoid legacy tryfirst/trylast marks
2021-11-02 09:42:00 +02:00
Ran Benita
ae58690f3e
Avoid soft-deprecated pathlist ini type on pytest>=7
...
This allows the test suite to succeed with the legacypath plugin
blocked.
Fix #722 .
2021-11-01 09:06:32 +02:00
Ran Benita
d794b27e72
Use config._tmp_path_factory instead of config._tmpdirhandler
...
Both are private, and shouldn't be used, but not sure how to fix it
currently. But `_tmpdirhandler` will be relegated to the legacypath
plugin so should extra not be used.
2021-11-01 09:06:32 +02:00
Ran Benita
9ddb274f23
Update test suite to modern pytest
...
- Use pytest>=6.2 features (same as install_requires).
When we can require >=7, can fix some more typing omissions and
version checks.
- Replace testdir with pytester
- Replace py.test with pytest
- Replace tmpdir with tmp_path
- Remove (almost) all other uses of py
- Add some type annotations (not checked yet)
Ref #722 .
2021-11-01 09:05:28 +02:00
Thomas Grainger
56e631b4bb
fix sys.path for local workers Fixes #421
2021-06-03 21:20:11 +01:00
pre-commit-ci[bot]
260211603e
[pre-commit.ci] pre-commit autoupdate ( #655 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-04-27 09:30:37 -03:00
Adam Johnson
f02aa70c95
Upgrade pre-commit hooks
...
Use `pre-commit autoupdate` to upgrade, and follow the message from `pre-commit-hooks` to move to the official `flake8` hook.
2021-03-20 11:13:59 -03:00
Bruno Oliveira
16d636391b
Propagate internal errors to the master node
...
This should help users diagnose internal errors in workers like
exceptions from hooks or in pytest itself.
2020-12-13 20:05:31 -03:00
Christine M
c211d247a7
Noisy rsync ( #473 )
...
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com >
2020-08-12 17:23:03 -03:00
Zac-HD
d153e0a4c4
Remove compat for pytest < 6
2020-08-06 15:48:33 +10:00
Hugo
22ae7ff7af
Upgrade Python syntax with pyupgrade --py3-plus
2020-08-03 22:52:03 +10:00
Zac-HD
de3e54fd27
Finish removal of "slave" terminology
...
See issue #234 . It's time.
2020-08-03 22:51:42 +10:00
Bruno Oliveira
443dc21061
Fix rsyncdirs usage with pytest 6.0
...
Fix pytest-dev/pytest#7487
2020-07-13 12:09:02 -03:00
Bruno Oliveira
b25757199c
Support new `pytest_warning_recorded` hook from pytest 6.0
2020-07-08 17:51:45 -03:00
Lukas Geiger
311cbfabfb
Prefer list comprehensions over list.append()
2020-06-21 01:00:02 +02:00
Sven-Hendrik Haase
2183d741bb
Add global session uuid ( fixes #524 )
2020-04-30 19:43:16 +02:00
Hugo van Kemenade
3a470043c9
Merge branch 'master' into rm-3.4
2020-01-26 21:05:51 +02:00
Ionel Cristian Mărieș
038a59eebc
Fix regression with custom arguments being dropped in non-local… ( #491 )
...
* No idea what I'm doing.
* Extend integration test to cover ac3f6a78c7401aba9b62c2c67f280a129ae84eaf.
* Remove useless output to stop failing other tests.
* Reformat.
* Upgrade virtualenv to see if it fixes py34 builds
* Add CHANGELOG entry
* Make foobarplugin part of the test only
* Fix language_version in pre-commit for rst
* Fix test in Python 2
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com >
2019-12-19 21:00:02 -03:00
Hugo
157871c026
Upgrade Python syntax with pyupgrade
2019-12-02 17:57:38 +02:00
Tom Boshoven
8cbbbe1a2a
Add another no:terminal fix and add a test.
2019-09-12 10:32:20 -04:00
Bruno Oliveira
953a3f0b4d
Use Config.invocation_params for consistent worker initialization
...
Decided to keep the old way still working for now.
Fix #6
Fix #445
2019-07-10 19:59:12 -03:00
Bruno Oliveira
7d41db3685
Adopt 'src' layout and add 'testing' extras
2019-06-06 19:35:13 -03:00