Skip to content

Tests: move test_posix.py and test_os.py into a new test_os package #139322

Closed

Description

@vstinner

In total, test_posix.py and test_os.py are the second largest test in the Python test suite: 8,193 lines.

I propose to:

  • (1) merge these two files into a new single test_os package
  • and (2) split these files into smaller files to ease their maintenance.

Linked PRs

Activity

  1. added a commit that references this issue on Sep 25, 2025
  2. added
    testsTests in the Lib/test dir
    type-refactorCode refactoring (with no changes in behavior)
    on Sep 25, 2025
  3. serhiy-storchaka commented on Sep 25, 2025

    @serhiy-storchaka
    Member

    test_os and test_posix contain tests for the same functions (except pure Python functions added in os). It is often not easy to find an appropriate place for new test, because there are tests in both modules.

    Until recently (see #111912), test_posix was ran only on Posix.

  4. added 7 commits that reference this issue on Sep 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirtype-refactorCode refactoring (with no changes in behavior)

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions