We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5c69f3 commit 40301efCopy full SHA for 40301ef
changelog/7438.breaking.rst
@@ -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