Skip to content

Incorrect module suggestions when using -S #146625

@Locked-chess-official

Description

@Locked-chess-official

Bug report

Bug description:

Here are two mistake in traceback suggest modules:

  1. -S will skip not only site-packages initialization but also module suggesting which is not .
  2. One finder raise an Exception in discover will affect the whole suggestion.

The PR is ready soon.

CPython versions tested on:

3.15, CPython main branch

Operating systems tested on:

Windows

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions