Skip to content

Commit ad4c107

Browse files
committed
doc: internal: remove references to old "newinterpret" module
This has been merged into the (only) assertrewrite mode.
1 parent eb00182 commit ad4c107

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/_pytest/assertion/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def pytest_collection(session: "Session") -> None:
114114
def pytest_runtest_protocol(item):
115115
"""Setup the pytest_assertrepr_compare and pytest_assertion_pass hooks
116116
117-
The newinterpret and rewrite modules will use util._reprcompare if
117+
The rewrite module will use util._reprcompare if
118118
it exists to use custom reporting via the
119119
pytest_assertrepr_compare hook. This sets up this custom
120120
comparison for the test.

src/_pytest/freeze_support.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,10 @@ def _iter_all_modules(package, prefix=""):
2121
"""
2222
Iterates over the names of all modules that can be found in the given
2323
package, recursively.
24-
Example:
25-
_iter_all_modules(_pytest) ->
26-
['_pytest.assertion.newinterpret',
27-
'_pytest.capture',
28-
'_pytest.core',
29-
...
30-
]
24+
25+
>>> import _pytest
26+
>>> list(_iter_all_modules(_pytest))
27+
['_pytest._argcomplete', '_pytest._code.code', ...]
3128
"""
3229
import os
3330
import pkgutil

0 commit comments

Comments
 (0)