Bruno Oliveira
f094355401
Merge pull request #9417 from nicoddemus/fix-py3.10.1-9413
2021-12-16 10:38:43 -03:00
Bruno Oliveira
378baab126
Merge pull request #9409 from bluetech/backport-9401
2021-12-12 13:30:54 -03:00
Ran Benita
74b9f46e40
Merge pull request #9401 from bluetech/doc-hooks-ref
...
doc: add a `hook` crossref type
(cherry picked from commit 8040cfd965
)
2021-12-12 18:05:19 +02:00
Bruno Oliveira
bf913eb4e7
Merge pull request #9398 from The-Compiler/backport-9390
...
[7.0.x] fix python version in changelog message (#9390 )
2021-12-08 07:50:19 -03:00
Bruno Oliveira
813e1e5b54
Merge pull request #9399 from The-Compiler/backport-9394
...
[7.0.x] Hide internal stack when using pytest.approx() in bool context (#9394 )
2021-12-08 07:50:11 -03:00
Bruno Oliveira
3587d6b526
Merge pull request #9397 from The-Compiler/backport-9389
...
[7.0.x] fix typo
2021-12-08 07:50:00 -03:00
Bruno Oliveira
76e108d06c
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.
(cherry picked from commit 3ba9c01f9b
)
2021-12-08 10:54:47 +01:00
Anthony Sottile
5f70fcba2e
fix python version in changelog message ( #9390 )
...
(cherry picked from commit 7ae23ff8ae
)
2021-12-08 10:54:19 +01:00
Éric
39028fac00
fix typo
...
(cherry picked from commit b691d31897
)
2021-12-08 10:53:30 +01:00
Florian Bruhin
ac0870ebad
scripts: Use release branch for changelog URL ( #9380 ) ( #9383 )
...
* scripts: Use release branch for changelog URL
With a prerelease, /stable won't show the correct changelog.
* [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>
(cherry picked from commit 21a186bbda
)
2021-12-07 19:19:42 +01:00
Florian Bruhin
871533322b
Fix changelog URL in 7.0.0rc1 announcement ( #9379 ) ( #9382 )
...
The changelog does not exist at /stable because an rc isn't stable...
(cherry picked from commit 5cb50fa13c
)
2021-12-07 11:44:19 +01:00
Bruno Oliveira
df2c59c07e
Merge pull request #9381 from nicoddemus/backport-9359
2021-12-07 07:20:38 -03:00
Yuval Shimon
9bfa02ea07
Fixed error message prints function decorators when using assert in Python 3.9 and above. ( #9359 )
2021-12-07 07:08:48 -03:00
github-actions[bot]
85897eddc6
Prepare release version 7.0.0rc1 ( #9375 )
...
Co-authored-by: pytest bot <pytestbot@gmail.com>
2021-12-07 09:37:18 +01:00
Florian Bruhin
fbf64d2529
Don't thank pytest bot ( #9372 )
2021-12-06 22:55:18 +01:00
Florian Bruhin
3a479db126
Fix hook param name in nonpython example ( #9373 )
...
Follow up to #9363
2021-12-06 22:55:06 +01:00
Bruno Oliveira
70d3d0f390
Drop readline workaround introduced in #1281 ( #8848 )
...
Fix #8733
Closes #8847
2021-12-06 19:50:11 +01:00
Florian Bruhin
b3ed595f52
Revert "Fix Dead link in README for 'assert statements' " ( #9369 )
...
This reverts commit 15989ddc8f
.
Reverts #8945 , thus reintroducing #8926 temporarily, but we should be close to
the 7.0.0 release now, where this is the correct URL to use.
Closes #8831 as follow-up to #8858 .
2021-12-06 17:56:39 +00:00
Ran Benita
5c55e91d77
Merge pull request #9368 from pytest-dev/dependabot/pip/testing/plugins_integration/pytest-django-4.5.1
...
build(deps): Bump pytest-django from 4.4.0 to 4.5.1 in /testing/plugins_integration
2021-12-06 15:39:37 +02:00
Florian Bruhin
663be09723
Improve reference and path/fspath docs ( #9341 )
...
* Improve reference and path/fspath docs
Closes #9283
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fixups
* Add explanation
* Update wording after #9363
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-12-06 11:25:05 +01:00
dependabot[bot]
17e2ecb253
build(deps): Bump pytest-django in /testing/plugins_integration
...
Bumps [pytest-django](https://github.com/pytest-dev/pytest-django ) from 4.4.0 to 4.5.1.
- [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.4.0...v4.5.1 )
---
updated-dependencies:
- dependency-name: pytest-django
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-12-06 03:02:03 +00:00
Bruno Oliveira
5852d66a6a
Merge pull request #9367 from pytest-dev/update-plugin-list/patch-a335ade1f
...
[automated] Update plugin list
2021-12-05 11:13:37 -03:00
pytest bot
72b7334f1d
[automated] Update plugin list
2021-12-05 00:12:43 +00:00
Bruno Oliveira
a335ade1f5
Rename pathlib hook parameters ( #9363 )
...
* Rename pytest_ignore_collect fspath parameter to collection_path
* Rename pytest_collect_file fspath parameter to file_path
* Rename pytest_pycollect_makemodule fspath parameter to module_path
* Rename pytest_report_header startpath parameter to start_path
* Rename pytest_report_collectionfinish startpath parameter to start_path
* Update docs with the renamed parameters
* Use pytest-flakes fork temporarily to prove it works
* Use pytest-flakes 4.0.5
2021-12-03 13:14:09 +01:00
Bruno Oliveira
96366dca42
Merge pull request #9356 from nicoddemus/copyright
2021-12-02 07:37:16 -03:00
Bruno Oliveira
482b858675
Merge pull request #9357 from GergelyKalmar/remove-unnecessary-newline
2021-12-01 19:08:46 -03:00
GergelyKalmar
82d450f98e
Update authors
2021-11-30 19:04:00 +01:00
GergelyKalmar
1bcc2f87a2
Do not display empty worker info
2021-11-30 18:59:46 +01:00
Bruno Oliveira
ed24f29e60
Change copyright notice so yearly updates are not needed
...
Just learned that we don't need to do this every year: https://hynek.me/til/copyright-years
Followed Go's example of only stating the starting year: https://github.com/golang/go/blob/master/LICENSE
Btw any ideas why the dates vary? Some start in 2004, others 2013, 2015... shouldn't be the same year for all locations?
2021-11-30 09:28:23 -03:00
Zac Hatfield-Dodds
e2ee3144ed
Merge pull request #9352 from truth-quark/spelling_fix_9351
2021-11-30 22:47:35 +11:00
Ben Davies
86bcaad828
Fix output of example test method.
2021-11-30 14:55:05 +11:00
Bruno Oliveira
fa240b0bb4
Merge pull request #9345 from aminalaee/patch-1
2021-11-29 11:43:53 -03:00
Bruno Oliveira
7627a7b413
Merge pull request #9348 from pytest-dev/dependabot/pip/testing/plugins_integration/anyio-curiotrio--3.4.0
...
build(deps): Bump anyio[curio,trio] from 3.3.4 to 3.4.0 in /testing/plugins_integration
2021-11-29 11:32:07 -03:00
dependabot[bot]
a0a37adfb2
build(deps): Bump anyio[curio,trio] in /testing/plugins_integration
...
Bumps [anyio[curio,trio]](https://github.com/agronholm/anyio ) from 3.3.4 to 3.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/3.3.4...3.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>
2021-11-29 03:02:13 +00:00
Ran Benita
64f22dcb80
Merge pull request #9346 from pytest-dev/update-plugin-list/patch-e01231c21
...
[automated] Update plugin list
2021-11-28 15:25:05 +02:00
pytest bot
7de752a50b
[automated] Update plugin list
2021-11-28 00:12:22 +00:00
Amin Alaee
f0d5d523aa
Update .readthedocs.yml
2021-11-27 13:15:16 +01:00
Bruno Oliveira
e01231c215
Merge pull request #9332 from pytest-dev/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-11-26 11:02:59 -03:00
Florian Bruhin
8436d695e5
Fix doc issues in deprecation change ( #9336 )
...
Follow-up to #9309 .
The issue in the changelog broke the docs build with:
doc/en/_changelog_towncrier_draft.rst:47: WARNING: Inline literal start-string
without end-string.
The second change isn't as critical, but caused the text to be rendered as
monospace including the tilde (i.e. `~pytest.PytestDeprecationwarning`).
2021-11-25 09:43:23 +01:00
pre-commit-ci[bot]
372a6fdfd7
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/psf/black: 21.10b0 → 21.11b1](https://github.com/psf/black/compare/21.10b0...21.11b1 )
- [github.com/asottile/blacken-docs: v1.11.0 → v1.12.0](https://github.com/asottile/blacken-docs/compare/v1.11.0...v1.12.0 )
- [github.com/asottile/pyupgrade: v2.29.0 → v2.29.1](https://github.com/asottile/pyupgrade/compare/v2.29.0...v2.29.1 )
- [github.com/asottile/setup-cfg-fmt: v1.19.0 → v1.20.0](https://github.com/asottile/setup-cfg-fmt/compare/v1.19.0...v1.20.0 )
2021-11-22 20:52:15 +00:00
Ran Benita
df9e94fbca
Change deprecation warnings into errors for 7.0 release, using a new mechanism ( #9309 )
2021-11-21 17:13:44 +02:00
github-actions[bot]
4fd897a631
[automated] Update plugin list ( #9326 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2021-11-21 17:12:22 +02:00
Bruno Oliveira
cd49075ad7
Merge pull request #9319 from nicoddemus/skip-test-prefix-integration-3.9
2021-11-19 12:23:34 -03:00
Bruno Oliveira
bd897513f2
Skip TestPyCacheDir.test_sys_pycache_prefix_integration on Windows + Python 3.9
...
Related to #9298
2021-11-19 11:22:08 -03:00
Ran Benita
a172a4141b
Change PytestRemovedIn7Warning to error by default
...
Per our backward compatibility policy.
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
2021-11-14 23:57:10 +02:00
Ran Benita
128f29ee35
Categorize deprecation warnings to `PytestRemovedInXWarning`
...
Closes #7480 .
This allows us to more easily follow our deprecation policy of turning
warnings into errors for the X.0 releases before complete removal in
X.1.
It also makes the deprecation timeline clear to both the users and
pytest developers -- it can be hard to keep track.
Note that the designation is not meant to be a binding contract - if the
time comes for removal of a specific deprecation but we decide it's too
soon, can just bump it to the next major.
Inspired by Django:
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/submitting-patches/#deprecating-a-feature
2021-11-14 23:57:10 +02:00
Bruno Oliveira
3dc17f1c3b
Merge pull request #9293 from hoefling/doc/extlinks-gh-user
2021-11-13 10:57:37 -03:00
Ran Benita
062d91ab47
python: remove the `Instance` collector node
2021-11-13 14:03:44 +02:00
Florian Bruhin
17b38259fd
Pin towncrier to 19.9.0 ( #9282 )
...
See https://github.com/twisted/towncrier/issues/346
Closes #8817 , supersedes #9045 and #9046 .
2021-11-11 16:48:54 +01:00
Bruno Oliveira
c5ab30d907
Merge pull request #9294 from spagh-eddie/patch-1
2021-11-11 07:33:21 -03:00