Hugo van Kemenade
be0c41bf8e
CI: Test latest 3.10 available
2022-02-11 13:49:11 +02:00
Bruno Oliveira
9e922c4325
Merge pull request #9662 from pytest-dev/dependabot/pip/testing/plugins_integration/twisted-22.1.0
2022-02-11 07:28:32 -03:00
dependabot[bot]
2b12739412
build(deps): Bump twisted in /testing/plugins_integration
...
Bumps [twisted](https://github.com/twisted/twisted ) from 21.7.0 to 22.1.0.
- [Release notes](https://github.com/twisted/twisted/releases )
- [Changelog](https://github.com/twisted/twisted/blob/trunk/NEWS.rst )
- [Commits](https://github.com/twisted/twisted/compare/twisted-21.7.0...twisted-22.1.0 )
---
updated-dependencies:
- dependency-name: twisted
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-02-11 03:47:43 +00:00
Bruno Oliveira
3586edc1c9
Merge pull request #9646 from nicoddemus/9643-delay-warning
2022-02-10 14:11:21 -03:00
Bruno Oliveira
88c35123b8
Delay warning about collector/item diamond inheritance
...
This allows that warning to be filtered by `filterwarnings`.
Fix #9643
2022-02-10 13:50:25 -03:00
Florian Bruhin
6aaa017b1e
doc: Discourage squashing for release ( #9657 )
...
Fixes #9655
2022-02-10 08:58:20 +01:00
Ran Benita
2b6708b892
Merge pull request #9624 from bluetech/unittest-getobj
...
unittest: restore `UnitTestFunction.obj` to return unbound rather than bound method
2022-02-09 22:43:31 +02:00
Ran Benita
23bdf78654
Merge pull request #9651 from bluetech/rename-pythonpath
...
Rename ``pythonpath`` plugin to ``python_path``
2022-02-09 13:20:22 +02:00
Ran Benita
01e1de7a1a
Rename ``pythonpath`` plugin to ``python_path``
...
Fix #9636 .
2022-02-09 10:03:20 +02:00
Ran Benita
04a6f52d67
Merge pull request #9611 from pllim/patch-1
...
DOC: pytest.warns() fails on zero warning
2022-02-08 16:00:06 +02:00
Ran Benita
4bf764f9a3
Merge pull request #9625 from pytest-dev/dependabot/pip/testing/plugins_integration/django-4.0.2
...
build(deps): Bump django from 4.0.1 to 4.0.2 in /testing/plugins_integration
2022-02-08 15:59:19 +02:00
Ran Benita
44290d1f6c
Merge pull request #9609 from kdelee/patch-1
...
importlib.readers not valid until python 3.10
2022-02-08 15:57:48 +02:00
Ran Benita
fb378ea269
Merge pull request #9639 from bluetech/docs-django-https
...
doc: remove django intersphinx mapping
2022-02-08 15:57:06 +02:00
Anthony Sottile
c326c04494
Merge pull request #9642 from pytest-dev/run-testid-with-colon-colon
...
allow running testids which contain :: in the parametrized portion
2022-02-08 08:34:49 -05:00
Anthony Sottile
efa16c2c9d
Merge pull request #9641 from asottile/fix-test-pollution-assertrewrite
...
fix test pollution in test_assertrewrite
2022-02-08 08:34:12 -05:00
Anthony Sottile
2442034a1e
allow running testids which contain :: in the parametrized portion
2022-02-07 20:19:59 -05:00
Anthony Sottile
579785b6cd
fix test pollution in test_assertrewrite
...
originally reproduced with this pollution set:
```
testing/test_assertrewrite.py::TestEarlyRewriteBailout::test_pattern_contains_subdirectories
testing/test_assertrewrite.py::TestRewriteOnImport::test_remember_rewritten_modules
```
2022-02-07 19:29:18 -05:00
Ran Benita
b80472c5bc
doc: fix a reference
2022-02-08 00:53:17 +02:00
dependabot[bot]
ef7d67b665
build(deps): Bump django in /testing/plugins_integration
...
Bumps [django](https://github.com/django/django ) from 4.0.1 to 4.0.2.
- [Release notes](https://github.com/django/django/releases )
- [Commits](https://github.com/django/django/compare/4.0.1...4.0.2 )
---
updated-dependencies:
- dependency-name: django
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-02-07 22:47:20 +00:00
Ran Benita
1612d3d1af
doc: remove django intersphinx mapping
...
Initially I just wanted to fix http -> https, but I think it's not worth
having at all just for this one reference.
2022-02-08 00:46:20 +02:00
Ran Benita
d00ca3f8e5
unittest: restore `UnitTestFunction.obj` to return unbound rather than bound method
...
This fixes #9610 .
pytest 7.0.0 (unintentionally) changed `UnitTestFunction.obj`'s' behavior
to match `Function.obj`. That is probably a good thing to have, however
it evidently causes some regressions as described in the issue, so
restore the previous behavior for now. In the future we might want to
make this change again, but with proper consideration.
2022-02-08 00:46:00 +02:00
pre-commit-ci[bot]
2073cce105
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-02-08 00:44:52 +02:00
Elijah DeLee
d45a19cfde
move function specific imports to function
...
re: review from @asottile that this should only get imported in the function
modify the else/if logic since inside the function we already know the python version is >= 3.10, and just have to know if it is 3.11 or greater
2022-02-08 00:44:52 +02:00
Bruno Oliveira
f86a87a315
Update src/_pytest/assertion/rewrite.py
...
Co-authored-by: Ran Benita <ran@unusedvar.com>
2022-02-08 00:44:52 +02:00
Bruno Oliveira
66dc79efd4
Update changelog/9608.bugfix.rst
...
Co-authored-by: Elijah DeLee <kdelee@redhat.com>
2022-02-08 00:44:52 +02:00
Bruno Oliveira
5f1a2f33da
Fix invalid importing of `importlib.reader` in Python 3.9
...
Fix #9608
2022-02-08 00:44:52 +02:00
Elijah DeLee
15ddccf700
importlib.readers not valid until python 3.10
...
This exists https://github.com/python/cpython/blob/3.10/Lib/importlib/readers.py and FileReader is in there
This is a 404 https://github.com/python/cpython/blob/3.9/Lib/importlib/readers.py
This change needs to get backported to the 7.0.z branch(s) too
Fixes https://github.com/pytest-dev/pytest/issues/9608
2022-02-08 00:44:52 +02:00
Anthony Sottile
bc33ba0be9
Merge pull request #9638 from asottile/fix-test-pollution
...
work around test pollution caused by new setuptools mutating global logger level
2022-02-07 17:19:01 -05:00
Anthony Sottile
b3692fe404
work around test pollution caused by new setuptools mutating global logger level
2022-02-07 15:10:03 -05:00
Ran Benita
6f936aa97c
Merge pull request #9622 from pytest-dev/update-plugin-list/patch-18c0cfc0d
...
[automated] Update plugin list
2022-02-07 15:09:58 +02:00
pytest bot
2c3be75b09
[automated] Update plugin list
2022-02-06 00:13:55 +00:00
Ran Benita
18c0cfc0de
Merge pull request #9612 from bluetech/namedtuple-class
...
mark/structures: use class-based NamedTuple syntax
2022-02-05 12:16:00 +02:00
Ran Benita
20c2c30ff2
mark/structures: use class-based NamedTuple syntax
...
Should hopefully work now in Python>=3.7.
2022-02-05 11:52:36 +02:00
P. L. Lim
d1b394af88
DOC: pytest.warns() fails on zero warning
2022-02-04 17:45:04 -05:00
Florian Bruhin
77a38a3b75
doc: Add changing RTD version to checklist ( #9606 )
...
I still think it makes sense to always serve docs from the release branch (rather than the latest tagged release), but that means we need to update it on new releases.
2022-02-04 17:36:31 +01:00
Gabor Szabo
57f8f5d2b3
Mention basetemp in docs as a way to only keep last temp dir ( #9607 )
...
Closes #9599
2022-02-04 12:38:26 +00:00
Florian Bruhin
b5a168aa0e
doc: Streamline remote handling in releasing docs ( #9603 )
...
The docs already assume an 'upstream' remote, so we can only fetch from there instead of fetching all remotes. We also don't need to hardcode the remote URL.
2022-02-04 12:13:33 +01:00
Florian Bruhin
48f01bdcc2
doc: Hide done training ( #9602 )
...
Only commenting out as I expect to add trainings at PyConDE and possibly PyConIT soon
2022-02-04 12:12:58 +01:00
Florian Bruhin
dff1a15881
ci: Add missing macOS CI envs ( #9601 )
...
alinsa_vix in Discord noticed that we are not testing Python 3.9 and 3.10 on macOS, which seems strange. Maybe this is due how to macOS CI resources were quite scarce for a while, but I believe this has improved since.
2022-02-04 12:11:30 +01:00
Florian Bruhin
dfa7023862
Prepare release 7.0.0 ( #9598 ) ( #9604 )
...
* Prepare release version 7.0.0
* Add note to changelog
Co-authored-by: pytest bot <pytestbot@gmail.com>
Co-authored-by: Florian Bruhin <me@the-compiler.org>
(cherry picked from commit e37fbe5685d330cbe7819c5a08d0a524df7299bf)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-02-04 07:48:24 -03:00
Florian Bruhin
2982753d80
releasing: Add template for major releases ( #9596 )
...
* releasing: Add template for major releases
With pytest 6.0.0, we still used a manual releasing workflow (at least if I
remember correctly), and apparently we never wrote a release announcement
template for major releases. Instead, the minor release template claimed that
the release would contain "breaking changes", which doesn't seem reasonable.
Thus, this adds a new major template based on the former minor template, and
adjusts the latter to only mention fixes and new features instead.
* Update scripts/release.minor.rst
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
2022-02-03 15:33:07 +00:00
Florian Bruhin
12b288d84a
releasing: Always set doc_version ( #9589 )
...
Looks like something (tox?) does not deal with empty arguments being passed to release.py correctly
2022-02-03 11:48:55 +01:00
Anthony Sottile
90b1c93f7e
Merge pull request #9585 from pytest-dev/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-02-01 01:32:31 -05:00
pre-commit-ci[bot]
9d2ffe207b
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-01-31 22:20:16 +00:00
pre-commit-ci[bot]
3aef0b9de6
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/psf/black: 21.12b0 → 22.1.0](https://github.com/psf/black/compare/21.12b0...22.1.0 )
- [github.com/asottile/blacken-docs: v1.12.0 → v1.12.1](https://github.com/asottile/blacken-docs/compare/v1.12.0...v1.12.1 )
- [github.com/asottile/reorder_python_imports: v2.6.0 → v2.7.1](https://github.com/asottile/reorder_python_imports/compare/v2.6.0...v2.7.1 )
2022-01-31 22:18:51 +00:00
Bruno Oliveira
4b1d9092a8
Merge pull request #9579 from pytest-dev/update-plugin-list/patch-ee9ddff34
2022-01-31 11:37:05 -03:00
Bruno Oliveira
232f44369a
Merge pull request #9581 from pytest-dev/dependabot/pip/testing/plugins_integration/pytest-mock-3.7.0
2022-01-31 09:14:21 -03:00
dependabot[bot]
b2701a0272
build(deps): Bump pytest-mock in /testing/plugins_integration
...
Bumps [pytest-mock](https://github.com/pytest-dev/pytest-mock ) from 3.6.1 to 3.7.0.
- [Release notes](https://github.com/pytest-dev/pytest-mock/releases )
- [Changelog](https://github.com/pytest-dev/pytest-mock/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest-mock/compare/v3.6.1...v3.7.0 )
---
updated-dependencies:
- dependency-name: pytest-mock
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-01-31 03:02:08 +00:00
pytest bot
321747628e
[automated] Update plugin list
2022-01-30 00:12:51 +00:00
Florian Bruhin
ee9ddff34e
doc: Recategorize 7.0.0 changelog items ( #9561 )
2022-01-27 12:39:32 +00:00