Skip to content

Commit 40301ef

Browse files
committed
Add changelog entry for code/source changes
1 parent f5c69f3 commit 40301ef

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

changelog/7438.breaking.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Some changes were made to the internal ``_pytest._code.source``, listed here
2+
for the benefit of plugin authors who may be using it:
3+
4+
- The ``deindent`` argument to ``Source()`` has been removed, now it is always true.
5+
- Support for zero or multiple arguments to ``Source()`` has been removed.
6+
- Support for comparing ``Source`` with an ``str`` has been removed.
7+
- The methods ``Source.isparseable()`` and ``Source.putaround()`` have been removed.
8+
- The method ``Source.compile()`` and function ``_pytest._code.compile()`` have
9+
been removed; use plain ``compile()`` instead.
10+
- The function ``_pytest._code.source.getsource()`` has been removed; use
11+
``Source()`` directly instead.

0 commit comments

Comments
 (0)