Ronny Pfannschmidt
b02a6db771
Merge pull request #667 from graingert/fix-sys-path
...
fix sys.path for local workers Fixes #421
2021-06-16 11:40:55 +02:00
Ronny Pfannschmidt
7f07d50808
Merge pull request #646 from kroeschl/numprocesses-logical
...
Add explicit 'logical' choice to --numprocesses flag
2021-06-08 08:44:29 +02:00
Thomas Grainger
02f971d45f
swap docstring
2021-06-03 21:46:21 +01:00
Thomas Grainger
56e631b4bb
fix sys.path for local workers Fixes #421
2021-06-03 21:20:11 +01:00
Kyle Roeschley
4d27110beb
Add 'logical' CPU count choice for --numprocesses
...
This can significantly speed up runs when testing is not CPU-bound.
2021-04-27 08:47:21 -05:00
xoviat
f861f1667d
add new pytest_handlecrashitem hook
...
allows handling and rescheduling crash tests
PR #651
Co-authored-by: xoviat <xoviat@users.noreply.github.com >
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com >
2021-04-27 09:07:49 -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
Ronny Pfannschmidt
166bdb4103
prepare #592 : replace master with controller where we can
2021-02-07 22:08:22 +01: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
Bruno Oliveira
b3a1bf3c2e
Fix test_warning_captured_deprecated_in_pytest_6
...
The test was failing because *other* warnings were being triggered on the
master node. This makes the test more reliable by checking only that
the warning from the worker node is not emitted.
Fix #601
2020-12-12 11:58:41 -03:00
Bruno Oliveira
607d8288d4
Add psutil extra and introduce pytest_xdist_auto_num_workers hook
...
This makes using psutil optional and opens up the possibility of customization
through the pytest_xdist_auto_num_workers hook, making things like #477 possible.
Fix #585
2020-08-25 08:38:28 -03:00
Bruno Oliveira
e469fc7b80
Revert "Merge pull request #560 from utapyngo/logical-cpu-count"
...
This reverts commit 0094b29a14 , reversing
changes made to c6255faad4 .
2020-08-24 14:50:36 -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
Sylvain Marié
ba8398478e
New methods is_xdist_worker, is_xdist_master, get_xdist_worker_id. ( #505 )
...
Co-authored-by: Sylvain MARIE <sylvain.marie@se.com >
Co-authored-by: Zac Hatfield-Dodds <Zac-HD@users.noreply.github.com >
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com >
2020-08-05 20:41:54 -03:00
Bruno Oliveira
047816f33a
Drop features from old pytest versions
2020-08-05 19:55:56 -03:00
Bruno Oliveira
55838a126d
Remove unnecessary skipif and changelog
2020-08-05 19:24:53 -03:00
Michał Górny
94bdd18a03
Fix skipping test_config_initialization for pytest<5
...
Fix test_config_initialization to be correctly skipped on pytest<5,
by explicitly checking pytest version (idea copied from
test_looponfail_removed_test). The current conditions are insufficient
-- the outer check wrongly assumes pytest>=5 will always be used
on Python 3 (which is not true if you need the same version to support
both Python 2 and Python 3), and the inner condition apparently
wrongly assuming that invocation_params attribute is not present
in pytest-4.
2020-08-05 19:20:14 -03:00
Hugo
62bc333e3e
Fix tests
2020-08-03 22:52:35 +10:00
Hugo
dddac7c7e9
Remove six library
2020-08-03 22:52:18 +10:00
Hugo
9decca0023
Drop support for EOL Python 2
2020-08-03 22:52:03 +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
Zac Hatfield-Dodds
0094b29a14
Merge pull request #560 from utapyngo/logical-cpu-count
2020-08-03 22:49:09 +10:00
Ivan Zaikin
e528a42ddc
Support OpenBSD and NetBSD
2020-07-28 08:55:32 +07:00
Adam Johnson
b524317863
Make "--pdb" imply "--dist no"
...
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com >
2020-07-24 20:07:42 -03:00
Daniel Hahler
467ac33d0b
tests: check that PYTEST_ADDOPTS is not processed twice
2020-07-24 19:04:16 -03:00
Bruno Oliveira
fac0c14e28
Merge pull request #531 from mgorny/timeout
2020-07-24 15:47:20 -03:00
Bruno Oliveira
18b18870a8
Do not trigger pytest_warning_captured in pytest 6.0+
...
Fix #562
2020-07-24 15:19:07 -03:00
Ivan Zaikin
77e5fdfef9
Use psutil.cpu_count(logical=False) in auto_detect_cpus()
2020-07-23 10:18:43 +07: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
77a1db27cd
Fix compatibility with pytest master
...
Fix the autouse fixture which diverts atexit.register calls to support the correct signature.
2020-07-08 15:58:31 -03:00
Bruno Oliveira
e48491d4fd
Fix linting
2020-05-03 09:38:57 -03:00
Michał Górny
27519e8018
Increase pexpect timeouts to prevent tests from failing
2020-05-03 11:24:03 +02:00
Sven-Hendrik Haase
f56596bcdc
Merge branch 'master' into 524-add-global-session-uuid
2020-05-01 16:56:23 +02:00
Sven-Hendrik Haase
8714a99d51
Ignore Python 3.8 specific failure in pytest for now
2020-04-30 21:08:21 +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
69d98fb079
Format with Black
2019-12-02 18:00:05 +02:00
Hugo
157871c026
Upgrade Python syntax with pyupgrade
2019-12-02 17:57:38 +02:00
Bruno Oliveira
0c53761e95
Fix tests for pytest features branch
2019-11-04 16:21:13 -03:00
Bruno Oliveira
ddc52f1e1a
Ensure pytest ends successfully in test_without_terminal_plugin
2019-09-13 09:17:28 -03:00
Tom Boshoven
8cbbbe1a2a
Add another no:terminal fix and add a test.
2019-09-12 10:32:20 -04:00
Bruno Oliveira
9f9b707481
Remove pytest 2.8 compatibility code ( #451 )
...
Remove pytest 2.8 compatibility code
2019-07-11 08:11:37 -03:00
Bruno Oliveira
2ca058e38a
Remove pytest 2.8 compatibility code
2019-07-11 07:46:53 -03: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
956c79700f
Do not show internal error when running out of workers
...
Also show the reason of the session being interrupted
in the warnings summary
Fix #435
2019-06-07 09:35:22 -03:00
Bruno Oliveira
bbc5416037
Use "nodes * 4" as default for --max-worker-restart
...
Fix #226
2019-06-06 19:53:37 -03:00
Bruno Oliveira
89d07a5cf2
Use serialization hooks from pytest 4.4
2019-04-01 18:37:03 -03:00