Skip to content

Commit

Permalink
Merge pull request #7050 from blueyed/fix-doc
Browse files Browse the repository at this point in the history
doc: internal: remove references to old "newinterpret" module
  • Loading branch information
bluetech committed Apr 17, 2020
2 parents 731c340 + ad4c107 commit 7d5f5a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/_pytest/assertion/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def pytest_collection(session: "Session") -> None:
def pytest_runtest_protocol(item):
"""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
pytest_assertrepr_compare hook. This sets up this custom
comparison for the test.
Expand Down
11 changes: 4 additions & 7 deletions src/_pytest/freeze_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,10 @@ def _iter_all_modules(package, prefix=""):
"""
Iterates over the names of all modules that can be found in the given
package, recursively.
Example:
_iter_all_modules(_pytest) ->
['_pytest.assertion.newinterpret',
'_pytest.capture',
'_pytest.core',
...
]
>>> import _pytest
>>> list(_iter_all_modules(_pytest))
['_pytest._argcomplete', '_pytest._code.code', ...]
"""
import os
import pkgutil
Expand Down

0 comments on commit 7d5f5a8

Please sign in to comment.