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
Bruno Oliveira
6d544cef9a
Fix linting
2019-02-15 08:37:57 -02:00
Jiri Kuncar
93780dcccc
Simpler usage error in test_remote_usage_prog
2019-02-15 10:54:18 +01:00
Bruno Oliveira
ca58e5e7ed
Fix test_remote_usage_prog after changes in pytest features branch
2019-02-13 15:20:32 -02:00
Jiri Kuncar
d8a794bc84
Improve behavior of -n=auto with --pdb option
2019-02-12 15:57:55 +01:00
Bruno Oliveira
1dec9dc246
ReprEntry objects no longer have the localssep attribute
...
The attribute was not used anywhere and has been removed in
pytest-dev/pytest#4615
2019-01-14 21:59:05 -02:00
Mickaël Schoentgen
f6ecaa9b7f
Fix ResourceWarning: unclosed file in setup.py
...
Also uniformize the usage of the 'with' context manager.
Signed-off-by: Mickaël Schoentgen <contact@tiger-222.fr >
2019-01-14 22:59:36 +01:00
Bruno Oliveira
b9423d894c
Fix linting
2019-01-10 19:19:34 -02:00
Alex Adamson
242c009866
Remove trailing whitespace
2019-01-10 15:50:25 -05:00
Alex Adamson
0ee219dc48
Address comments
2019-01-10 15:45:48 -05:00
Alex Adamson
ac2bf10fe2
Disable unserialized arguments check for py2
2019-01-08 15:17:03 -05:00
Alex Adamson
fa85371c73
Add test for #379
2019-01-08 15:17:03 -05:00
Bruno Oliveira
261d4189f0
Skip config.warn tests in pytest 4.1
2019-01-08 10:57:14 -02:00
Bruno Oliveira
2b65800738
Fix test_remote_usage_prog which started to break with pytest@features
2018-12-12 18:25:04 -02:00
Bruno Oliveira
95aaaec6c5
Merge pull request #388 from blueyed/pass-mainargv
...
Pass and use original sys.argv to/with workers
2018-12-12 15:21:56 -02:00
Bruno Oliveira
5f0abe3cb8
Merge remote-tracking branch 'upstream/master' into ethanhs/silencenodes
2018-12-11 14:35:25 -02:00