Update remaining 7.0 references (#8834)
This commit is contained in:
parent
8c25a14032
commit
8347b59295
|
@ -119,7 +119,7 @@ Deprecations
|
||||||
- ``_pytest.tmpdir.TempPathFactory``
|
- ``_pytest.tmpdir.TempPathFactory``
|
||||||
- ``_pytest.tmpdir.TempdirFactory``
|
- ``_pytest.tmpdir.TempdirFactory``
|
||||||
|
|
||||||
These have always been considered private, but now issue a deprecation warning, which may become a hard error in pytest 7.0.0.
|
These have always been considered private, but now issue a deprecation warning, which may become a hard error in pytest 8.0.0.
|
||||||
|
|
||||||
|
|
||||||
- `#7530 <https://github.com/pytest-dev/pytest/issues/7530>`_: The ``--strict`` command-line option has been deprecated, use ``--strict-markers`` instead.
|
- `#7530 <https://github.com/pytest-dev/pytest/issues/7530>`_: The ``--strict`` command-line option has been deprecated, use ``--strict-markers`` instead.
|
||||||
|
@ -205,7 +205,7 @@ Improvements
|
||||||
- ``pytest.WarningsRecorder`` for the :fixture:`recwarn` fixture.
|
- ``pytest.WarningsRecorder`` for the :fixture:`recwarn` fixture.
|
||||||
|
|
||||||
Constructing them is not supported (except for `MonkeyPatch`); they are only meant for use in type annotations.
|
Constructing them is not supported (except for `MonkeyPatch`); they are only meant for use in type annotations.
|
||||||
Doing so will emit a deprecation warning, and may become a hard-error in pytest 7.0.
|
Doing so will emit a deprecation warning, and may become a hard-error in pytest 8.0.
|
||||||
|
|
||||||
Subclassing them is also not supported. This is not currently enforced at runtime, but is detected by type-checkers such as mypy.
|
Subclassing them is also not supported. This is not currently enforced at runtime, but is detected by type-checkers such as mypy.
|
||||||
|
|
||||||
|
|
|
@ -318,7 +318,7 @@ class TestWarns:
|
||||||
assert str(record[1].message) == "runtime"
|
assert str(record[1].message) == "runtime"
|
||||||
|
|
||||||
def test_record_only_none_deprecated_warn(self) -> None:
|
def test_record_only_none_deprecated_warn(self) -> None:
|
||||||
# This should become an error when WARNS_NONE_ARG is removed in Pytest 7.0
|
# This should become an error when WARNS_NONE_ARG is removed in Pytest 8.0
|
||||||
with warnings.catch_warnings():
|
with warnings.catch_warnings():
|
||||||
warnings.simplefilter("ignore")
|
warnings.simplefilter("ignore")
|
||||||
with pytest.warns(None) as record: # type: ignore[call-overload]
|
with pytest.warns(None) as record: # type: ignore[call-overload]
|
||||||
|
|
Loading…
Reference in New Issue