-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7438 from bluetech/source-cleanups
code/source: some cleanups
- Loading branch information
Showing
7 changed files
with
107 additions
and
417 deletions.
There are no files selected for viewing
This file contains 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,11 @@ | ||
Some changes were made to the internal ``_pytest._code.source``, listed here | ||
for the benefit of plugin authors who may be using it: | ||
|
||
- The ``deindent`` argument to ``Source()`` has been removed, now it is always true. | ||
- Support for zero or multiple arguments to ``Source()`` has been removed. | ||
- Support for comparing ``Source`` with an ``str`` has been removed. | ||
- The methods ``Source.isparseable()`` and ``Source.putaround()`` have been removed. | ||
- The method ``Source.compile()`` and function ``_pytest._code.compile()`` have | ||
been removed; use plain ``compile()`` instead. | ||
- The function ``_pytest._code.source.getsource()`` has been removed; use | ||
``Source()`` directly instead. |
This file contains 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 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 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 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.