Ran Benita
7fc2cf51c2
Merge pull request #9441 from bluetech/nose-setup-callable
...
python: skip nose setup/teardown fixtures if non-callable
2021-12-27 11:09:51 +02:00
Bruno Oliveira
09c0bee288
Merge pull request #9444 from pytest-dev/update-plugin-list/patch-443aa0219
...
[automated] Update plugin list
2021-12-26 14:10:28 -03:00
Anthony Sottile
d39780f30b
Merge pull request #9428 from pytest-dev/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-12-26 11:50:46 -05:00
pytest bot
427f035b76
[automated] Update plugin list
2021-12-26 00:14:18 +00:00
Ran Benita
10e21dadee
python: skip nose setup/teardown fixtures if non-callable
...
Since commit 89f0b5b5a2
cases as in the
added test started to fail, like they do for the standard pytest names
(`setup_module` etc). But the name `setup` in particular is way too
common for us to start taking it over more aggressively, so restore the
previous behavior which required the object to be callable.
Fix #9391 .
2021-12-25 12:09:11 +02:00
Ran Benita
443aa0219c
Merge pull request #9416 from bluetech/doc-stash-fix
...
doc: fix a reference in "Writing hook functions"
2021-12-25 10:49:40 +02:00
Ran Benita
8071ad6b90
doc: fix a reference in "Writing hook functions"
2021-12-25 10:30:59 +02:00
Ran Benita
0fecfff2be
Merge pull request #9425 from pytest-dev/update-plugin-list/patch-47df71d23
...
[automated] Update plugin list
2021-12-23 11:07:22 +02:00
Anthony Sottile
c69b84f236
fix typing issues in mypy 0.920
2021-12-21 20:42:32 -05:00
pre-commit-ci[bot]
e358bc65a8
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v0.910-1 → v0.920](https://github.com/pre-commit/mirrors-mypy/compare/v0.910-1...v0.920 )
2021-12-20 20:42:31 +00:00
pytest bot
a73a9a12a2
[automated] Update plugin list
2021-12-19 00:12:37 +00:00
Bruno Oliveira
47df71d23f
Merge pull request #9417 from nicoddemus/fix-py3.10.1-9413
2021-12-16 10:37:52 -03:00
Bruno Oliveira
913439f5e5
Fix test_errors_in_xfail_skip_expressions for Python 3.10.1
...
Decided to remove the condition altogether as seems reasonable to state
that our own test suite requires Python 3.10.1.
Fix #9413
2021-12-16 10:18:07 -03:00
Yuval Shimon
3bbadda0cf
Merge pull request #9407 from yuvalshi0/remove-eq-format
...
Avoid specialized assert formatting when we detect that __eq__ is overridden
2021-12-14 10:53:56 +02:00
Bruno Oliveira
d8ff487b07
Merge pull request #9411 from pytest-dev/dependabot/pip/testing/plugins_integration/pytest-django-4.5.2
2021-12-13 08:54:31 -03:00
dependabot[bot]
a3cf2ad3bc
build(deps): Bump pytest-django in /testing/plugins_integration
...
Bumps [pytest-django](https://github.com/pytest-dev/pytest-django ) from 4.5.1 to 4.5.2.
- [Release notes](https://github.com/pytest-dev/pytest-django/releases )
- [Changelog](https://github.com/pytest-dev/pytest-django/blob/master/docs/changelog.rst )
- [Commits](https://github.com/pytest-dev/pytest-django/compare/v4.5.1...v4.5.2 )
---
updated-dependencies:
- dependency-name: pytest-django
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-12-13 03:02:33 +00:00
Ran Benita
8040cfd965
Merge pull request #9401 from bluetech/doc-hooks-ref
...
doc: add a `hook` crossref type
2021-12-12 18:02:53 +02:00
Ran Benita
ab8c9848a0
Merge pull request #9408 from pytest-dev/dependabot/pip/testing/plugins_integration/django-3.2.10
...
build(deps): Bump django from 3.2.9 to 3.2.10 in /testing/plugins_integration
2021-12-12 18:02:27 +02:00
Ran Benita
0e69c62ece
doc: add a `hook` crossref type
...
Allow writing
🪝 `pytest_cmdline_main`
instead of
:func:`pytest_cmdline_main <_pytest.hookspec.pytest_cmdline_main>`
2021-12-12 16:29:30 +02:00
dependabot[bot]
4d6e8a310b
build(deps): Bump django in /testing/plugins_integration
...
Bumps [django](https://github.com/django/django ) from 3.2.9 to 3.2.10.
- [Release notes](https://github.com/django/django/releases )
- [Commits](https://github.com/django/django/compare/3.2.9...3.2.10 )
---
updated-dependencies:
- dependency-name: django
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-12-12 14:26:36 +00:00
Ran Benita
37d44434d8
Merge pull request #9405 from bluetech/ci-backport
...
ci: add a workflow for backporting to other branches
2021-12-12 16:26:11 +02:00
Bruno Oliveira
0bc77de158
Merge pull request #9406 from pytest-dev/update-plugin-list/patch-dd609e150
...
[automated] Update plugin list
2021-12-12 11:22:11 -03:00
Yuval Shimon
0ea039db60
adding auto_detect=true test
2021-12-12 16:11:33 +02:00
Yuval Shimon
0c45065040
removing coverage on eq method
2021-12-12 15:39:30 +02:00
Yuval Shimon
7cf2b51d8e
Merge branch 'pytest-dev:main' into remove-eq-format
2021-12-12 15:16:58 +02:00
Yuval Shimon
2d7905b13b
support pypy
2021-12-12 15:14:24 +02:00
Yuval Shimon
df74e5c532
fixing pre-commit
2021-12-12 14:53:29 +02:00
pre-commit-ci[bot]
9166ff6cb5
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2021-12-12 12:49:24 +00:00
Yuval Shimon
8c3b17263b
removing unnecessary changes
2021-12-12 14:47:00 +02:00
Yuval Shimon
a67c547536
fixing tests
2021-12-12 14:45:47 +02:00
Yuval Shimon
31f42ef83f
small fix
2021-12-12 14:40:46 +02:00
Yuval Shimon
897395afd5
fix 9326
2021-12-12 14:38:45 +02:00
pytest bot
99a8be200a
[automated] Update plugin list
2021-12-12 00:12:01 +00:00
Ran Benita
c85b14391d
ci: add a workflow for backporting to other branches
...
To backport a PR, e.g. 1000, to another branch, e.g. `7.0.x`, add a
label `backport 7.0.x` to the PR. This will trigger a workflow which
will create a branch `backport-1000-to-7.0.x` based on the `7.0.x`
branch with a cherry-pick of the PR's merge commit, and create a new PR
for it against the `7.0.x` branch.
It is very simplistic, for instance it doesn't handle cherry-pick
failure gracefully, doesn't validate the state of the PR, doesn't check
if the branch already exists, etc. But we can improve on it later as
needed.
Finally, PRs created by github actions do not themselves trigger further
actions, i.e. the PR isn't checked. You need to close & reopen the PR
for the checks to trigger. There are workarounds for this but they are
either less secure or require more setup.
2021-12-12 01:12:35 +02:00
Ran Benita
dd609e150b
Merge pull request #9264 from bluetech/no-pycollector
...
Make PyCollector an implementation detail - don't use in hook type annotation
2021-12-11 22:57:49 +02:00
Ran Benita
0c8a54ab77
Merge pull request #9310 from bluetech/test-main-same-mod
...
testing/test_session: add a regression test for an old bug
2021-12-11 22:26:28 +02:00
Ran Benita
c7be96dae4
Merge pull request #9392 from bluetech/rm-7-deprecated
...
Remove deprecations scheduled for removal in pytest 7.1
2021-12-08 22:59:42 +02:00
Ran Benita
ee93557ef3
Remove `PytestRemovedIn7Warning`
...
Fix #8838 .
2021-12-08 15:58:08 +02:00
Ran Benita
e05e696fda
Make PyCollector an implementation detail - don't use in hook type annotation
...
The `pytest_pycollector_makeitem` argument `collector` is currently
annotated with type `PyCollector`. As part of #7469 , that would have
required us to expose it in the public API. But really it's an
implementation detail, not something we want to expose. So replace the
annotation with the concrete python collector types that are passed.
Strictly speaking, `pytest_pycollector_makeitem` is called from
`PyCollector.collect()`, so the new type annotation is incorrect if
another type subclasses `PyCollector`. But the set of python collectors
is closed (mapping to language constructs), and the type is private, so
there shouldn't be any other deriving classes, and we can consider it
effectively sealed (unfortunately Python does not provide a way to
express this - yet?).
2021-12-08 15:20:23 +02:00
Anthony Sottile
7ae23ff8ae
fix python version in changelog message ( #9390 )
2021-12-08 10:46:55 +01:00
Bruno Oliveira
3ba9c01f9b
Hide internal stack when using pytest.approx() in bool context ( #9394 )
...
This makes the error traceback point directly to the offending usage, rather
than to the internal `Approx.__bool__` method.
2021-12-08 10:46:44 +01:00
Ran Benita
0f39f11d88
Remove deprecated `pytest.collect` module
2021-12-07 22:27:35 +02:00
Ran Benita
4a45a5e983
Remove deprecated `-k foobar:` syntax
2021-12-07 22:27:35 +02:00
Ran Benita
927d9d274f
Remove deprecated `-k -foobar` syntax
2021-12-07 22:27:35 +02:00
Ran Benita
41d8fb09ca
Remove deprecated `pytest_warning_captured` hook
2021-12-07 22:27:35 +02:00
Ran Benita
0b0e2d2dbb
Remove deprecated `_fillfuncargs` function
2021-12-07 22:27:35 +02:00
Ran Benita
4d7a962ca0
Merge pull request #9389 from merwok/patch-1
...
fix markup typo that breaks rendering
2021-12-07 18:35:42 +02:00
Éric
b691d31897
fix typo
2021-12-07 18:16:59 +02:00
Ran Benita
d4120738b5
Merge pull request #9387 from pytest-dev/releasing-prerelease-tag
...
RELEASING: should also tag dev0 for prereleases
2021-12-07 17:16:16 +02:00
Ran Benita
49278c1df8
RELEASING: should also tag dev0 for prereleases
2021-12-07 15:04:27 +02:00