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 — Test with the path protocol, not with pathlib.Path · Issue #119064 · python/cpython

Test with the path protocol, not with pathlib.Path #119064

New issue
Copy link
New issue
Copy link
Closed
Closed
Test with the path protocol, not with pathlib.Path#119064
Copy link
Labels
3.12only security fixesonly security fixes3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixestestsTests in the Lib/test dirTests in the Lib/test dir

Description

@serhiy-storchaka
serhiy-storchaka
opened on May 15, 2024
Issue body actions

A number of tests use pathlib.Path to test that the code supports path-like objects. They should use a special object that only implements the path protocol instead. This will avoid unintentional dependency on other pathlib.Path methods and attributes and allow to test path-like objects with the bytes path.

Linked PRs

  • gh-119064: Use os_helper.FakePath instead of pathlib.Path in tests #119065
  • [3.13] gh-119064: Use os_helper.FakePath instead of pathlib.Path in tests (GH-119065) #119087
  • [3.12] gh-119064: Use os_helper.FakePath instead of pathlib.Path in tests (GH-119065) #119088
  • [3.11] gh-119064: Use os_helper.FakePath instead of pathlib.Path in tests (GH-119065) #119089
Reacted by Alex Waygood and Barney Gale

Activity

  1. serhiy-storchaka
    added
    testsTests in the Lib/test dirTests in the Lib/test dir
    3.12only security fixesonly security fixes
    3.13only security fixesonly security fixes
    3.14bugs and security fixesbugs and security fixes
    on May 15, 2024
  2. serhiy-storchaka
    added 4 commits that reference this issue on May 15, 2024

    pythongh-119064: Use os_helper.FakePath instead of pathlib.Path in tests

    e5c9233

    pythongh-119064: Use os_helper.FakePath instead of pathlib.Path in tests

    aded70a

    pythongh-119064: Use os_helper.FakePath instead of pathlib.Path in tests

    20e44cd

    gh-119064: Use os_helper.FakePath instead of pathlib.Path in tests (G…

    0152dc4
  3. miss-islington
    added a commit that references this issue on May 16, 2024

    pythongh-119064: Use os_helper.FakePath instead of pathlib.Path in te…

    c4c1b04
  4. serhiy-storchaka
    added 4 commits that reference this issue on May 16, 2024

    [3.12] pythongh-119064: Use os_helper.FakePath instead of pathlib.Pat…

    b4b2738

    [3.11] pythongh-119064: Use os_helper.FakePath instead of pathlib.Pat…

    b1d7360

    [3.12] pythongh-119064: Use os_helper.FakePath instead of pathlib.Pat…

    fb1870a

    [3.13] gh-119064: Use os_helper.FakePath instead of pathlib.Path in t…

    1dc7fcd
  5. serhiy-storchaka
    closed this as completedon May 16, 2024
  6. serhiy-storchaka
    added a commit that references this issue on May 16, 2024

    [3.12] gh-119064: Use os_helper.FakePath instead of pathlib.Path in t…

    33a9f0c
  7. estyxx
    added a commit that references this issue on Jul 17, 2024

    pythongh-119064: Use os_helper.FakePath instead of pathlib.Path in te…

    5dafb14
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

    3.12only security fixesonly security fixes3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixestestsTests in the Lib/test dirTests in the Lib/test dir

    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.