doc: internal: remove references to old "newinterpret" module
This has been merged into the (only) assertrewrite mode.
This commit is contained in:
parent
eb00182061
commit
ad4c1071d9
|
@ -114,7 +114,7 @@ def pytest_collection(session: "Session") -> None:
|
||||||
def pytest_runtest_protocol(item):
|
def pytest_runtest_protocol(item):
|
||||||
"""Setup the pytest_assertrepr_compare and pytest_assertion_pass hooks
|
"""Setup the pytest_assertrepr_compare and pytest_assertion_pass hooks
|
||||||
|
|
||||||
The newinterpret and rewrite modules will use util._reprcompare if
|
The rewrite module will use util._reprcompare if
|
||||||
it exists to use custom reporting via the
|
it exists to use custom reporting via the
|
||||||
pytest_assertrepr_compare hook. This sets up this custom
|
pytest_assertrepr_compare hook. This sets up this custom
|
||||||
comparison for the test.
|
comparison for the test.
|
||||||
|
|
|
@ -21,13 +21,10 @@ def _iter_all_modules(package, prefix=""):
|
||||||
"""
|
"""
|
||||||
Iterates over the names of all modules that can be found in the given
|
Iterates over the names of all modules that can be found in the given
|
||||||
package, recursively.
|
package, recursively.
|
||||||
Example:
|
|
||||||
_iter_all_modules(_pytest) ->
|
>>> import _pytest
|
||||||
['_pytest.assertion.newinterpret',
|
>>> list(_iter_all_modules(_pytest))
|
||||||
'_pytest.capture',
|
['_pytest._argcomplete', '_pytest._code.code', ...]
|
||||||
'_pytest.core',
|
|
||||||
...
|
|
||||||
]
|
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
import pkgutil
|
import pkgutil
|
||||||
|
|
Loading…
Reference in New Issue