GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Tests: move test_posix.py and test_os.py into a new test_os package · Issue #139322 · python/cpython

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

New issue
Copy link
New issue
Copy link
Closed
Closed
Tests: move test_posix.py and test_os.py into a new test_os package#139322
Copy link
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-refactorCode refactoring (with no changes in behavior)Code refactoring (with no changes in behavior)

Description

@vstinner
vstinner
opened on Sep 25, 2025
Issue body actions

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

  • gh-139322: Create test_os package #139323
  • gh-139322: Create test_os package #139453
  • gh-139322: Remove redundant test_os.Win32ErrorTests #139477
  • gh-139322: Create test_os.test_process #139480
  • gh-139322: Reenable test_os.test_getlogin() #139498
Reacted by Jeffrey Bosboom

Activity

  1. vstinner
    added a commit that references this issue on Sep 25, 2025

    pythongh-139322: Create test_os package

    2bd6bea
  2. picnixz
    added
    testsTests in the Lib/test dirTests in the Lib/test dir
    type-refactorCode refactoring (with no changes in behavior)Code refactoring (with no changes in behavior)
    on Sep 25, 2025
  3. serhiy-storchaka commented on Sep 25, 2025

    @serhiy-storchaka
    serhiy-storchaka
    on Sep 25, 2025
    Member
    More actions

    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. vstinner
    added 7 commits that reference this issue on Sep 30, 2025

    pythongh-139322: Create test_os package

    491cb89

    gh-139322: Create test_os package (#139453)

    0158890

    pythongh-139322: Remove test_os Win32ErrorTests

    13cd49f

    pythongh-139322: Create test_os.test_process

    d72de7f

    pythongh-139322: Reenable test_os.test_getlogin()

    3f415ab

    gh-139322: Remove redundant `test_os.Win32ErrorTests` (#139477)

    af01b46

    gh-139322: Reenable test_os.test_getlogin() (#139498)

    4e7e2dd
  5. vstinner
    closed this as completedon Jul 10, 2026
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 dirTests in the Lib/test dirtype-refactorCode refactoring (with no changes in behavior)Code refactoring (with no changes in behavior)

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.