We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6b5735 commit 59f0112Copy full SHA for 59f0112
src/_pytest/pathlib.py
@@ -620,10 +620,6 @@ def _import_module_using_spec(
620
:param insert_modules:
621
If True, will call insert_missing_modules to create empty intermediate modules
622
for made-up module names (when importing test files not reachable from sys.path).
623
- Note: we can probably drop insert_missing_modules altogether: instead of
624
- generating module names such as "src.tests.test_foo", which require intermediate
625
- empty modules, we might just as well generate unique module names like
626
- "src_tests_test_foo".
627
"""
628
# Checking with sys.meta_path first in case one of its hooks can import this module,
629
# such as our own assertion-rewrite hook.
0 commit comments