Ran Benita
b78cf1c0ce
Improve typing
...
Fix #1057
2024-04-15 23:30:17 +03:00
Ran Benita
5dfc590a8c
Merge pull request #1061 from bluetech/scheduling-proto
...
Add a Scheduling Protocol
2024-04-15 18:20:29 +03:00
Ran Benita
bf2dcccfb0
Add a Scheduling Protocol
...
- Clearly delineate the required interface of schedulers
- Useful for typing
2024-04-15 18:05:46 +03:00
Bruno Oliveira
91812bf5f9
Merge pull request #1062 from pytest-dev/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2024-04-10 11:08:51 -03:00
pre-commit-ci[bot]
7c3f70f007
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v4.6.0 )
2024-04-08 22:37:10 +00:00
Ran Benita
47208081d6
Merge pull request #1060 from bluetech/pre-typing-fixes
...
Pre-typing fixes/improvements
2024-04-06 22:26:31 +03:00
Ran Benita
cdff86a131
pyproject: make plain mypy run work
2024-04-06 21:55:44 +03:00
Ran Benita
29aa05f9bf
testing: add worksteal to TestLocking tests
...
Seems like it intends to check all schedulers.
2024-04-06 21:55:44 +03:00
Ran Benita
d6c81d5537
pre-commit: remove py from typing deps, add types-psutil
...
py is no longer used.
psutil is used optionally so add its typing.
2024-04-06 21:55:42 +03:00
Ran Benita
e7a971b167
Use from __future__ import annotations
...
Allows us to use more modern typing.
2024-04-06 21:55:21 +03:00
Ran Benita
059c1bcc8c
remote,workermanage: use enums for markers
...
Enum has a unique type, unlike `object()`, enabling better typing.
2024-04-06 21:54:44 +03:00
Ran Benita
ee0b09c61f
loadscope: use dict instead of OrderedDict
...
These days dicts are guaranteed to be ordered, so no need to use
OrderedDict in two of the three cases (the remaining case needs
`popitem(last=False)`).
2024-04-06 21:54:44 +03:00
Ran Benita
024c73f29e
testing: fix a private pytest import to its current location
2024-04-06 21:54:44 +03:00
Ran Benita
5c676aa685
dsession,workermanage: drop handling of pytest_captured_warning
...
Since d153e0a4c4 the remote doesn't send
events for this hook at all (I think perhaps wrongly, but it's history
by now), so no point in handling it in the coordinator side.
2024-04-06 21:54:44 +03:00
Ran Benita
a3b9a98126
looponfail: remove unneeded setup(out) parameter
...
It's not used.
2024-04-06 21:54:44 +03:00
Ran Benita
4057da1c1f
remote: use perf_counter() to measure duration, not time()
...
`time()` is not monotonic and is not appropriate for measuring duration.
2024-04-06 21:54:44 +03:00
Ran Benita
ef5dcde977
each: remove incorrect mark_test_pending implementation
...
This code is bogus copy/paste; presumably it's not executed in practice
so make it raise `NotImplementedError`.
2024-04-06 21:54:44 +03:00
Ran Benita
503c5ee828
loadscope: remove redundant None check
...
self.config can't be None.
2024-04-06 21:54:44 +03:00
Ran Benita
8e77d14f8c
testing: fix an assert
...
The assert as written was always true, according to the name `failures`
it intended the first element of the tuple.
2024-04-06 21:54:44 +03:00
Ran Benita
5dcc10c723
dsession: remove unnecessary getplugin("runner")
2024-04-06 21:54:44 +03:00
Ran Benita
3e9260462d
Merge pull request #1059 from bluetech/execnet-min
...
Bump min execnet to 2.1.0
2024-04-06 21:51:30 +03:00
Ran Benita
e9084f2d73
Bump min execnet to 2.1.0
...
This version adds typing which we want to utilize.
2024-04-05 21:52:13 +03:00
Ran Benita
dd067e4f86
Merge pull request #1058 from bluetech/pytest-min-7
...
Bump min pytest to 7.0.0
2024-04-05 20:39:24 +03:00
Ran Benita
31de42ffa5
Bump min pytest to 7.0.0
...
Refs #1057
2024-04-05 11:50:11 +03:00
Ran Benita
99b767b6dd
Merge pull request #1056 from bluetech/ci-pytestmin
...
ci: add a job for min supported pytest version
2024-04-05 10:58:02 +03:00
Ran Benita
fbf2eca13d
ci: add a job for min supported pytest version
...
Make sure we don't break the promise.
2024-04-04 19:39:16 +03:00
Ran Benita
470bc83a25
Merge pull request #1052 from bluetech/pytester
...
testing: replace `testdir` -> `pytester`
2024-04-04 00:09:41 +03:00
Ronny Pfannschmidt
d96d87ef6f
Merge pull request #1054 from bluetech/rm-py37
...
Drop support for Python 3.7
2024-04-03 21:56:21 +02:00
Ran Benita
a790dc5d72
Drop support for Python 3.7
...
Fix #1053
2024-04-03 18:07:38 +03:00
Ran Benita
d63400e8a6
testing: replace testdir -> pytester
...
The `testdir` fixture is soft-deprecated in favor of `pytester`.
2024-04-03 18:01:00 +03:00
Ran Benita
b6f5d2bd32
Merge pull request #1051 from bluetech/ruff
...
Use ruff instead of black, flake8, autoflake, pyupgrade
2024-04-03 09:42:26 +03:00
Ran Benita
816c9dcda1
Use ruff instead of black, flake8, autoflake, pyupgrade
...
Config adapted from pytest.
2024-04-03 00:19:32 +03:00
Ran Benita
c01de1c73e
Make docstring style more consistent
2024-04-03 00:19:31 +03:00
Ran Benita
e3b69d4f29
Sort imports
...
Using pytest's style.
2024-04-03 00:19:31 +03:00
Bruno Oliveira
8f7bd68566
Merge pull request #1050 from pytest-dev/dependabot/github_actions/github-actions-867643949f
...
Bump the github-actions group with 1 update
2024-04-01 16:44:44 -03:00
dependabot[bot]
940c4fcf1d
Bump the github-actions group with 1 update
...
Bumps the github-actions group with 1 update: [hynek/build-and-inspect-python-package](https://github.com/hynek/build-and-inspect-python-package ).
Updates `hynek/build-and-inspect-python-package` from 2.0 to 2.2
- [Release notes](https://github.com/hynek/build-and-inspect-python-package/releases )
- [Changelog](https://github.com/hynek/build-and-inspect-python-package/blob/main/CHANGELOG.md )
- [Commits](https://github.com/hynek/build-and-inspect-python-package/compare/v2.0...v2.2 )
---
updated-dependencies:
- dependency-name: hynek/build-and-inspect-python-package
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-01 17:25:28 +00:00
Ben Brown
84df4451ed
Terminate the test loop if shouldfail or shouldstop is set ( #1026 )
2024-04-01 18:00:50 +03:00
Bruno Oliveira
dde8a66da5
Merge pull request #1047 from bluetech/rm-invocationparams-compat
...
Remove pytest InvocationParams backward compat
2024-04-01 07:36:30 -03:00
pre-commit-ci[bot]
74f5752ed9
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2024-03-23 18:42:36 +00: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
pre-commit-ci[bot]
74edbeb7c7
[pre-commit.ci] pre-commit autoupdate ( #1044 )
...
updates:
- [github.com/PyCQA/autoflake: v2.3.0 → v2.3.1](https://github.com/PyCQA/autoflake/compare/v2.3.0...v2.3.1 )
- [github.com/psf/black: 24.2.0 → 24.3.0](https://github.com/psf/black/compare/24.2.0...24.3.0 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-03-19 12:27:16 -03:00
pre-commit-ci[bot]
5b83de49c5
[pre-commit.ci] pre-commit autoupdate ( #1039 )
...
updates:
- [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.9.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.8.0...v1.9.0 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-03-13 06:55:47 -03:00
dependabot[bot]
a9801a4214
Bump the github-actions group with 2 updates ( #1037 )
...
Bumps the github-actions group with 2 updates: [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish ) and [softprops/action-gh-release](https://github.com/softprops/action-gh-release ).
Updates `pypa/gh-action-pypi-publish` from 1.8.12 to 1.8.14
- [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases )
- [Commits](https://github.com/pypa/gh-action-pypi-publish/compare/v1.8.12...v1.8.14 )
Updates `softprops/action-gh-release` from 1 to 2
- [Release notes](https://github.com/softprops/action-gh-release/releases )
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md )
- [Commits](https://github.com/softprops/action-gh-release/compare/v1...v2 )
---
updated-dependencies:
- dependency-name: pypa/gh-action-pypi-publish
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
- dependency-name: softprops/action-gh-release
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-12 09:52:45 -03:00
Albert Tugushev
74887e356d
Fix incompatibility error with --pdb despite using -n0 ( #938 )
...
Fixes #937
2024-03-05 19:23:49 -03:00
dependabot[bot]
0596f2755b
Bump the github-actions group with 1 update ( #1035 )
...
Bumps the github-actions group with 1 update: [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish ).
Updates `pypa/gh-action-pypi-publish` from 1.8.11 to 1.8.12
- [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases )
- [Commits](https://github.com/pypa/gh-action-pypi-publish/compare/v1.8.11...v1.8.12 )
---
updated-dependencies:
- dependency-name: pypa/gh-action-pypi-publish
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-04 15:15:58 -03:00
Ronny Pfannschmidt
54720c14f0
Merge pull request #1030 from jeremy-hiatt/dont-rewrite-path-hooks
...
Avoid modifying path placeholders created by editable installs
2024-03-01 07:34:14 +01:00
Jeremy Hiatt
79fb6ff9c0
testing: Add test to assert path hooks ignored in sys.path
2024-02-29 14:42:25 -08:00
Jeremy Hiatt
51ef94439c
Avoid modifying path placeholders created by editable installs
...
The setuptools implementation of editable installs will insert a
placeholder entry into sys.path as part of its magic to register its
custom import mechanism.
These are not real filesystem paths and as such should not be
rewritten to absolute paths.
2024-02-28 15:17:12 -08:00
Bruno Oliveira
f57c65839b
Fix '-n logical' inconsistencies and review --help formatting ( #1022 )
...
Fix #1021 and review formatting of the --help messages, following pytest's rules for consistency.
2024-02-25 11:49:41 -03:00
pre-commit-ci[bot]
ce9b01e50c
[pre-commit.ci] pre-commit autoupdate ( #1025 )
...
updates:
- [github.com/PyCQA/autoflake: v2.2.1 → v2.3.0](https://github.com/PyCQA/autoflake/compare/v2.2.1...v2.3.0 )
- [github.com/asottile/pyupgrade: v3.15.0 → v3.15.1](https://github.com/asottile/pyupgrade/compare/v3.15.0...v3.15.1 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-02-19 22:46:24 -03:00