dependabot[bot]
3d91e42229
build(deps): Bump pytest-bdd in /testing/plugins_integration ( #12442 )
...
Bumps [pytest-bdd](https://github.com/pytest-dev/pytest-bdd ) from 7.1.2 to 7.2.0.
- [Release notes](https://github.com/pytest-dev/pytest-bdd/releases )
- [Changelog](https://github.com/pytest-dev/pytest-bdd/blob/master/CHANGES.rst )
- [Commits](https://github.com/pytest-dev/pytest-bdd/compare/7.1.2...7.2.0 )
---
updated-dependencies:
- dependency-name: pytest-bdd
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-10 08:28:57 +02:00
github-actions[bot]
9bfcca6f48
[automated] Update plugin list ( #12441 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2024-06-09 22:49:33 -03:00
Ran Benita
f85289ba87
Merge pull request #12436 from bluetech/unittest-rerun-assertion
...
unittest: fix assertion errors on unittest reruns
2024-06-08 02:11:20 +03:00
Ran Benita
18f15a38fc
Merge pull request #12435 from bluetech/avoid-type-checking
...
Avoid some `TYPE_CHECKING`
2024-06-08 02:11:06 +03:00
Ran Benita
db67107090
Merge pull request #12434 from bluetech/register-fixture-scope-none
...
fixtures: change `register_fixture` to not accept `scope=None`
2024-06-07 12:11:56 +03:00
Ran Benita
de47b73520
unittest: fix assertion errors on unittest reruns
...
This fixes unittest test reruns when using plugins like
pytest-rerunfailures.
The `instance` property uses AttributeError to check if the instance
needs to be initialized, so `del` is the correct way to clear it, not
setting to `None`.
Regressed in 8.2.2.
2024-06-07 10:21:15 +03:00
Ran Benita
8585c58826
Merge pull request #10470 from pytest-dev/dependabot/pip/testing/plugins_integration/pytest-trio-0.8.0
...
build(deps): Bump pytest-trio from 0.7.0 to 0.8.0 in /testing/plugins_integration
2024-06-07 10:20:42 +03:00
dependabot[bot]
13f97632c6
build(deps): Bump pytest-trio in /testing/plugins_integration
...
Bumps [pytest-trio](https://github.com/python-trio/pytest-trio ) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/python-trio/pytest-trio/releases )
- [Commits](https://github.com/python-trio/pytest-trio/compare/v0.7.0...v0.8.0 )
---
updated-dependencies:
- dependency-name: pytest-trio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-06-07 07:03:09 +00:00
Ran Benita
c07bbdfa5b
Avoid some TYPE_CHECKING
...
It's better not to use it when possible.
2024-06-07 09:36:55 +03:00
Jason R. Coombs
f941099371
Cleanup MockAwareDocTestFinder. ( #12431 )
...
* Only rely on _find_lineno on Python 3.10 and earlier.
* Update docstring to reflect current expectation.
* Only rely on _find on Python 3.9 and earlier.
* Mark line as uncovered.
* Remove empty else block (implicit is better than explicit).
Closes #12430
Closes #12432
2024-06-07 09:32:33 +03:00
Tomasz Kłoczko
6b2daaa2e9
[pre-commit] Add pyupgrade back as a manual stage ( #12418 )
...
Launchable with ``pre-commit run --hook-stage manual pyupgrade -a``
---------
Signed-off-by: Tomasz Kłoczko <kloczek@github.com>
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2024-06-06 23:52:29 +02:00
holger krekel
043ff9abc6
Remove hp42 contact details from the documentation ( #12427 )
2024-06-06 10:24:31 +00:00
Ran Benita
c9d8765381
fixtures: change `register_fixture` to not accept `scope=None`
...
There is no reason to allow this.
2024-06-04 23:22:18 +03:00
Ran Benita
0070151c63
Merge pull request #12416 from bluetech/cherry-pick-release
...
Cherry-pick 8.2.2 release notes
2024-06-04 17:22:29 +03:00
Ran Benita
4cd80e19c5
Merge pull request #12415 from pytest-dev/release-8.2.2
...
Prepare release 8.2.2
(cherry picked from commit f3a494cca3
)
2024-06-04 16:52:15 +03:00
Ran Benita
d4dbe771f0
Merge pull request #12409 from bluetech/reorder-items-perf
...
fixtures: fix catastrophic performance problem in `reorder_items`
2024-06-04 10:16:19 +03:00
Ran Benita
e89d23b247
fixtures: fix catastrophic performance problem in `reorder_items`
...
Fix #12355 .
In the issue, it was reported that the `reorder_items` has quadratic (or
worse...) behavior with certain simple parametrizations. After some
debugging I found that the problem happens because the "Fix
items_by_argkey order" loop keeps adding the same item to the deque,
and it reaches epic sizes which causes the slowdown.
I don't claim to understand how the `reorder_items` algorithm works, but
if as far as I understand, if an item already exists in the deque, the
correct thing to do is to move it to the front. Since a deque doesn't
have such an (efficient) operation, this switches to `OrderedDict` which
can efficiently append from both sides, deduplicate and move to front.
2024-06-04 10:15:50 +03:00
pre-commit-ci[bot]
3433c7adf5
[pre-commit.ci] pre-commit autoupdate ( #12413 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.4.5 → v0.4.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.5...v0.4.7 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-06-04 09:06:33 +02:00
Michael Vogt
7be95f9b30
code: do not truncate args when running with -vvv ( #12241 )
...
Related to #2871 .
2024-06-03 12:11:41 +00:00
Ran Benita
177f2ae6c4
Merge pull request #12408 from bluetech/cache-race
...
cacheprovider: fix "Directory not empty" crash from cache directory creation
2024-06-03 12:43:59 +03:00
Ran Benita
1eee63a891
fixtures: minor cleanups to reorder_items
...
This makes some minor clarity and performance improvements to the code.
2024-06-02 18:31:54 +03:00
Ran Benita
17065cb008
cacheprovider: fix "Directory not empty" crash from cache directory creation
...
Fix #12381
Test plan:
It's possible to write a deterministic test case for this, but somewhat
of a hassle so I tested it manually. I reproduced by removing existing
`.pytest_cache`, adding a sleep before the rename and running two
pytests. I verified that it doesn't reproduce after the fix.
2024-06-02 17:05:36 +03:00
github-actions[bot]
98021838fd
[automated] Update plugin list ( #12405 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2024-06-02 09:31:40 -03:00
Florian Bruhin
10c6db2df2
doc: Update trainings/events ( #12401 )
2024-05-30 16:48:37 +02:00
Pierre Sassoulas
0ba3e91fbd
Merge pull request #12379 from Pierre-Sassoulas/more-pylint-fixes
...
[pylint] Fix ``consider-using-sys-exit``, ``use-yield-from``, and ``implicit-str-concat``
2024-05-29 15:07:04 +02:00
Pierre Sassoulas
908e112999
[pylint 'implicit-str-concat'] fix existing unwanted implicit str concat
2024-05-29 14:36:01 +02:00
Pierre Sassoulas
0d33cdf02a
[pylint] Disable the only 'misplaced-bare-raise'
2024-05-29 14:36:01 +02:00
Pierre Sassoulas
c45afde35d
[pylint 'consider-using-sys-exit'] Fix all occurences in existing code
2024-05-29 14:36:01 +02:00
Pierre Sassoulas
db67d5c874
[pylint 'use-yield-from'] Fix all occurences in existing code
2024-05-29 14:36:01 +02:00
dependabot[bot]
383659d0be
build(deps): Bump hynek/build-and-inspect-python-package ( #12373 )
...
Bumps [hynek/build-and-inspect-python-package](https://github.com/hynek/build-and-inspect-python-package ) from 2.5.0 to 2.6.0.
- [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.5.0...v2.6.0 )
---
updated-dependencies:
- dependency-name: hynek/build-and-inspect-python-package
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-29 13:39:29 +02:00
Bruno Oliveira
9f121e85a7
Clarify pytest_ignore_collect docs ( #12385 )
...
Fixes #12383
Co-authored-by: Ran Benita <ran@unusedvar.com>
2024-05-28 13:47:00 -03:00
pre-commit-ci[bot]
48cb8a2b32
[pre-commit.ci] pre-commit autoupdate ( #12380 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.4.4 → v0.4.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.4...v0.4.5 )
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-05-27 22:31:18 +00:00
Pierre Sassoulas
88fae23bdd
[pylint] Fixes all ``use-maxplit-args``, ``consider-using-enumerate`` ( #12172 )
...
* [pylint 'use-maxsplit-arg'] Do not split more than necessary when using the first element
* [pylint 'consider-using-enumerate'] Use zip when iterating on two iterators
* [pylint] 'cell-var-from-loop' and 'disallowed-name' permanent disable
* [pylint] Disable 'possibly-used-before-assignment' following 3.2.0 release
2024-05-27 12:18:03 -07:00
dependabot[bot]
24abe4eb03
build(deps): Bump anyio[curio,trio] in /testing/plugins_integration ( #12374 )
...
Bumps [anyio[curio,trio]](https://github.com/agronholm/anyio ) from 4.3.0 to 4.4.0.
- [Release notes](https://github.com/agronholm/anyio/releases )
- [Changelog](https://github.com/agronholm/anyio/blob/master/docs/versionhistory.rst )
- [Commits](https://github.com/agronholm/anyio/compare/4.3.0...4.4.0 )
---
updated-dependencies:
- dependency-name: anyio[curio,trio]
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-27 06:43:30 +02:00
James Frost
020db7ec04
Add html_baseurl to sphinx conf.py ( #12364 )
...
This is used to set the <link rel="canonical" href="X"> tag that points to the canonical version of the webpage. Including this indicates to search engines which version to include in their indexes, and should prevent older versions showing up.
Fixes #12363
2024-05-26 07:21:30 -03:00
Ran Benita
f8dfc1d5f0
Merge pull request #12368 from bluetech/unittest-clear-instance
...
unittest: fix class instances no longer released on test teardown since pytest 8.2.0
2024-05-26 10:34:11 +03:00
Ran Benita
c3c51037f0
unittest: fix class instances no longer released on test teardown since pytest 8.2.0
...
Fix #12367 .
2024-05-26 10:18:42 +03:00
Ran Benita
3fbf4d3cbd
Merge pull request #12369 from pytest-dev/update-plugin-list/patch-889d9b28d
...
[automated] Update plugin list
2024-05-26 10:14:35 +03:00
pytest bot
b83dd34ce1
[automated] Update plugin list
2024-05-26 00:21:28 +00:00
Nathan Goldbaum
889d9b28d7
Add thread safety section to flaky test docs ( #12359 )
...
Closes #12356
2024-05-24 08:16:44 -03:00
Sam Jirovec
cbf6bd9dd2
Issue #12290 - Docs using Furo Theme W/ Dark Mode ( #12326 )
...
* furo theme for docs site
* removing duplicate tocs from deprecations and reference pages
* removing pallets references in code and config
* reverting trainings to sidebar
* removed sphinx style and unpinned packaging version
* updated styles
2024-05-21 13:56:18 +00:00
pre-commit-ci[bot]
5d5c9dc858
[pre-commit.ci] pre-commit autoupdate ( #12321 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.4.3 → v0.4.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.3...v0.4.4 )
- [github.com/tox-dev/pyproject-fmt: 1.8.0 → 2.1.3](https://github.com/tox-dev/pyproject-fmt/compare/1.8.0...2.1.3 )
Also fix the comment following autofix
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2024-05-21 07:04:09 +00:00
dependabot[bot]
00be7c0739
build(deps): Bump pytest-asyncio in /testing/plugins_integration ( #12345 )
...
Bumps [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio ) from 0.23.6 to 0.23.7.
- [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases )
- [Commits](https://github.com/pytest-dev/pytest-asyncio/compare/v0.23.6...v0.23.7 )
---
updated-dependencies:
- dependency-name: pytest-asyncio
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-20 07:11:04 +02:00
Hynek Schlawack
d4f827d86b
Fix link in changelog ( #12343 )
2024-05-19 21:14:45 +00:00
Ran Benita
69fa9bae43
Merge pull request #12342 from bluetech/cherry-pick-release
...
Cherry pick 8.2.1 release notes
2024-05-19 22:37:32 +03:00
pytest bot
32baa0b93d
Prepare release version 8.2.1
...
(cherry picked from commit 66ff8dffdf
)
2024-05-19 22:11:09 +03:00
Ran Benita
d5b6d44d0e
Merge pull request #12339 from pytest-dev/update-plugin-list/patch-ee9ea703f
...
[automated] Update plugin list
2024-05-19 12:47:55 +03:00
Ran Benita
c1d623cbff
Merge pull request #12334 from bluetech/py313
...
Add Python 3.13 (beta) support
2024-05-19 09:45:09 +03:00
Ran Benita
1cb704ff2c
Add Python 3.13 (beta1) support
2024-05-19 09:25:13 +03:00
pytest bot
cb732bbfb0
[automated] Update plugin list
2024-05-19 00:21:06 +00:00