Skip to content

pathlib.Path.resolve(strict=False) returns relative path on Windows if the entry does not exist #82852

@uranusjr

Description

@uranusjr
mannequin
BPO 38671
Nosy @brettcannon, @pfmoore, @tjguk, @zware, @zooba, @uranusjr, @miss-islington, @carltongibson, @barneygale, @cjolowicz
PRs
  • bpo-38671: Make sure to return an absolute path in pathlib._WindowsFlavour.resolve() #17716
  • bpo-38671: Add test that pathlib.Path.resolve() returns an absolute path. #26184
  • [3.10] bpo-38671: Add test that pathlib.Path.resolve() returns an absolute path. (GH-26184) #26270
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2021-08-07.14:59:51.791>
    created_at = <Date 2019-11-03.09:55:31.070>
    labels = ['type-bug', '3.8', '3.9', '3.10', 'library', 'OS-windows']
    title = 'pathlib.Path.resolve(strict=False) returns relative path on Windows if the entry does not exist'
    updated_at = <Date 2021-08-07.14:59:51.790>
    user = 'https://github.com/uranusjr'

    bugs.python.org fields:

    activity = <Date 2021-08-07.14:59:51.790>
    actor = 'uranusjr'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-08-07.14:59:51.791>
    closer = 'uranusjr'
    components = ['Library (Lib)', 'Windows']
    creation = <Date 2019-11-03.09:55:31.070>
    creator = 'uranusjr'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 38671
    keywords = ['patch']
    message_count = 3.0
    messages = ['355892', '394108', '399190']
    nosy_count = 11.0
    nosy_names = ['brett.cannon', 'paul.moore', 'tim.golden', 'zach.ware', 'steve.dower', 'uranusjr', 'ricpol', 'miss-islington', 'carltongibson', 'barneygale', 'cjolowicz']
    pr_nums = ['17716', '26184', '26270']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue38671'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.8 (EOL)end of life3.9 (EOL)end of lifeOS-windowsstdlibStandard 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