mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[TEMP] debug tests on windows using modern technology (print statements)
This commit is contained in:
parent
7ac428e9c4
commit
6515e2fefd
2 changed files with 4 additions and 0 deletions
|
|
@ -130,12 +130,15 @@ def _find_modules(self, path: str, prefix: str) -> list[str]:
|
|||
for segment in path.split('.'):
|
||||
modules = [mod_info for mod_info in modules
|
||||
if mod_info.ispkg and mod_info.name == segment]
|
||||
print(f"{segment=}, {modules=}") # TEMPORARY -- debugging tests on windows
|
||||
if is_stdlib_import is None:
|
||||
# Top-level import decide if we import from stdlib or not
|
||||
is_stdlib_import = all(
|
||||
self._is_stdlib_module(mod_info) for mod_info in modules
|
||||
)
|
||||
modules = self.iter_submodules(modules)
|
||||
modules = list(modules) # TEMPORARY -- debugging tests on windows
|
||||
print(f"segment=last, {modules=}") # TEMPORARY -- debugging tests on windows
|
||||
|
||||
module_names = [module.name for module in modules]
|
||||
if is_stdlib_import:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue