Skip to content

pathlib mistakenly assumes os.getcwd() is a resolved path in Windows#87621

@eryksun

Description

@eryksun
BPO43455
Nosy@pfmoore, @tjguk, @zware, @eryksun, @zooba, @uranusjr
PRs
  • bpo-38671: Make sure to return an absolute path in pathlib._WindowsFlavour.resolve() #17716
  • 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=Noneclosed_at=Nonecreated_at=<Date2021-03-09.23:05:56.225>labels= ['type-bug', '3.8', '3.9', '3.10', 'library', 'OS-windows'] title='pathlib mistakenly assumes os.getcwd() is a resolved path in Windows'updated_at=<Date2022-03-03.10:05:28.651>user='https://github.com/eryksun'

    bugs.python.org fields:

    activity=<Date2022-03-03.10:05:28.651>actor='uranusjr'assignee='none'closed=Falseclosed_date=Nonecloser=Nonecomponents= ['Library (Lib)', 'Windows'] creation=<Date2021-03-09.23:05:56.225>creator='eryksun'dependencies= [] files= [] hgrepos= [] issue_num=43455keywords= ['patch'] message_count=2.0messages= ['388393', '414415'] nosy_count=6.0nosy_names= ['paul.moore', 'tim.golden', 'zach.ware', 'eryksun', 'steve.dower', 'uranusjr'] pr_nums= ['17716'] priority='normal'resolution=Nonestage='patch review'status='open'superseder=Nonetype='behavior'url='https://bugs.python.org/issue43455'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/ directorytopic-pathlibtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions