Skip to content

Not only module imports should be tested, but python -m too #92563

Closed
@arhadthedev

Description

@arhadthedev

Currently all (of the most of, need verification) modules are tested for imports only.

However, if __name__ == "__main__" path needs to be tested as well to avoid bugs like gh-92546 (reported for 3.10 but also affects 3.11b1).

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirtype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions