From ad4c1071d9c64627162d9a761329c4a5c44d0e29 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 9 Apr 2020 01:39:24 +0200 Subject: [PATCH] doc: internal: remove references to old "newinterpret" module This has been merged into the (only) assertrewrite mode. --- src/_pytest/assertion/__init__.py | 2 +- src/_pytest/freeze_support.py | 11 ++++------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/_pytest/assertion/__init__.py b/src/_pytest/assertion/__init__.py index ee7fa6a3a..7b5a5889d 100644 --- a/src/_pytest/assertion/__init__.py +++ b/src/_pytest/assertion/__init__.py @@ -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. diff --git a/src/_pytest/freeze_support.py b/src/_pytest/freeze_support.py index f9d613a2b..9d35d9afc 100644 --- a/src/_pytest/freeze_support.py +++ b/src/_pytest/freeze_support.py @@ -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