-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Remove deprecated features #5529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
be91c4d
Remove Request.getfuncargvalue
nicoddemus 279733a
Remove support for 'code as string' from pytest.raises and pytest.warns
nicoddemus 13f7f27
Remove 'message' parameter from pytest.raises
nicoddemus 683b263
Remove explicit kwargs handling from raises, warns and ParameterSet.p…
nicoddemus 647d89c
Move code about 'pytest_plugins' error to a more appropriate place
nicoddemus f2b7809
Move setup.cfg error message and tests to an appropriate location
nicoddemus 7e58def
Remove 'pytest.config'
nicoddemus aa1955d
Remove 'tmpdir_factory.ensuretemp'
nicoddemus 7b35405
Remove YIELD_TESTS from deprecated module as it is now an error
nicoddemus 3a17c1b
Remove 'pytest_logwarning' hook
nicoddemus c470ade
Remove 'RemovedInPytest4Warning'
nicoddemus 85cc12e
Move FIXTURE_FUNCTION_CALL constant to the point of error
nicoddemus 0ed7aa2
Make 'request' a reserved name for fixtures
nicoddemus dfe54cd
Let context-managers for raises and warns handle unknown keyword argu…
nicoddemus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| As per our policy, the following features have been deprecated in the 4.X series and are now | ||
| removed: | ||
|
|
||
| * ``Request.getfuncargvalue``: use ``Request.getfixturevalue`` instead. | ||
|
|
||
| * ``pytest.raises`` and ``pytest.warns`` no longer support strings as the second argument. | ||
|
|
||
| * ``message`` parameter of ``pytest.raises``. | ||
|
|
||
| * ``pytest.raises``, ``pytest.warns`` and ``ParameterSet.param`` now use native keyword-only | ||
| syntax. This might change the exception message from previous versions, but they still raise | ||
| ``TypeError`` on unknown keyword arguments as before. | ||
|
|
||
| * ``pytest.config`` global variable. | ||
|
|
||
| * ``tmpdir_factory.ensuretemp`` method. | ||
|
|
||
| * ``pytest_logwarning`` hook. | ||
|
|
||
| * ``RemovedInPytest4Warning`` warning type. | ||
|
|
||
| * ``request`` is now a reserved name for fixtures. | ||
|
|
||
|
|
||
| For more information consult | ||
| `Deprecations and Removals <https://docs.pytest.org/en/latest/deprecations.html>`__ in the docs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.