Remove outdated comment

Seems we need to insert missing modules when the modules are not part of a package or namespace package.
This commit is contained in:
Bruno Oliveira 2024-04-13 12:08:35 -03:00 committed by Bruno Oliveira
parent 3c6caf65eb
commit 9dc41a74bd
1 changed files with 0 additions and 4 deletions

View File

@ -620,10 +620,6 @@ def _import_module_using_spec(
:param insert_modules:
If True, will call insert_missing_modules to create empty intermediate modules
for made-up module names (when importing test files not reachable from sys.path).
Note: we can probably drop insert_missing_modules altogether: instead of
generating module names such as "src.tests.test_foo", which require intermediate
empty modules, we might just as well generate unique module names like
"src_tests_test_foo".
"""
# Checking with sys.meta_path first in case one of its hooks can import this module,
# such as our own assertion-rewrite hook.