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_pathlib fails if current path has junctions · Issue #76447 · python/cpython

test_pathlib fails if current path has junctions #76447

New issue
Copy link
New issue
Copy link
Closed
Closed
test_pathlib fails if current path has junctions#76447
Copy link
Labels
3.7 (EOL)end of lifeend of life3.8 (EOL)end of lifeend of lifeOS-windowstestsTests in the Lib/test dirTests in the Lib/test dirtopic-pathlibtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

native-api
mannequin
opened on Dec 10, 2017
Issue body actions
BPO 32266
Nosy @larryhastings, @native-api
PRs
  • bpo-32266: make test_pathlib pass when working path has junctions #4778
  • 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 = None
    created_at = <Date 2017-12-10.08:29:27.732>
    labels = ['3.7', '3.8', 'type-bug', 'tests']
    title = 'test_pathlib fails if current path has junctions'
    updated_at = <Date 2018-01-22.10:22:48.943>
    user = 'https://github.com/native-api'

    bugs.python.org fields:

    activity = <Date 2018-01-22.10:22:48.943>
    actor = 'larry'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Tests']
    creation = <Date 2017-12-10.08:29:27.732>
    creator = 'Ivan.Pozdeev'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 32266
    keywords = ['patch']
    message_count = 2.0
    messages = ['307945', '310412']
    nosy_count = 2.0
    nosy_names = ['larry', 'Ivan.Pozdeev']
    pr_nums = ['4778']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue32266'
    versions = ['Python 3.6', 'Python 3.7', 'Python 3.8']

    Activity

    1. native-api commented on Dec 10, 2017

      @native-api
      native-apimannequin
      on Dec 10, 2017
      MannequinAuthor
      More actions

      On this machine, C:\Users is a junction to D:\Users .

      Sample failure:

      Running Release|x64 interpreter...
      ....FFF........s...s..s.s.s................s......FF..............ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss.........................................................................................................................................................................FFF........s...s..s.s.s................s......FF...........
      ======================================================================
      FAIL: test_complex_symlinks_absolute (main.PathTest)
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File "Lib\test\test_pathlib.py", line 2027, in test_complex_symlinks_absolute
          self._check_complex_symlinks(BASE)
        File "Lib\test\test_pathlib.py", line 1994, in _check_complex_symlinks
          self.assertEqual(p, P)
      AssertionError: WindowsPath('D:/Users/Ivan/Documents/cpython_all/@test_2376_tmp') != WindowsPath('C:/Users/Ivan/Documents/cpython_all/@test_2376_tmp')

      ======================================================================
      FAIL: test_complex_symlinks_relative (main.PathTest)
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File "Lib\test\test_pathlib.py", line 2031, in test_complex_symlinks_relative
          self._check_complex_symlinks('.')
        File "Lib\test\test_pathlib.py", line 1994, in _check_complex_symlinks
          self.assertEqual(p, P)
      AssertionError: WindowsPath('D:/Users/Ivan/Documents/cpython_all/@test_2376_tmp') != WindowsPath('C:/Users/Ivan/Documents/cpython_all/@test_2376_tmp')

      ======================================================================
      FAIL: test_complex_symlinks_relative_dot_dot (main.PathTest)
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File "Lib\test\test_pathlib.py", line 2035, in test_complex_symlinks_relative_dot_dot
          self._check_complex_symlinks(os.path.join('dirA', '..'))
        File "Lib\test\test_pathlib.py", line 1994, in _check_complex_symlinks
          self.assertEqual(p, P)
      AssertionError: WindowsPath('D:/Users/Ivan/Documents/cpython_all/@test_2376_tmp') != WindowsPath('C:/Users/Ivan/Documents/cpython_all/@test_2376_tmp')

      ======================================================================
      FAIL: test_resolve_common (main.PathTest)
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File "Lib\test\test_pathlib.py", line 1491, in test_resolve_common
          os.path.join(BASE, 'foo'))
      AssertionError: 'D:\\Users\\Ivan\\Documents\\cpython_all\\@test_2376_tmp\\foo' != 'C:\\Users\\Ivan\\Documents\\cpython_all\\@test_2376_tmp\\foo'
      - D:\Users\Ivan\Documents\cpython_all\@test_2376_tmp\foo
      ? ^
      + C:\Users\Ivan\Documents\cpython_all\@test_2376_tmp\foo
      ? ^

      ======================================================================
      FAIL: test_resolve_dot (main.PathTest)
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File "Lib\test\test_pathlib.py", line 1550, in test_resolve_dot
          self.assertEqual(q.resolve(strict=True), p)
      AssertionError: WindowsPath('D:/Users/Ivan/Documents/cpython_all/@test_2376_tmp') != WindowsPath('C:/Users/Ivan/Documents/cpython_all/@test_2376_tmp')

      ======================================================================
      FAIL: test_complex_symlinks_absolute (main.WindowsPathTest)
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File "Lib\test\test_pathlib.py", line 2027, in test_complex_symlinks_absolute
          self._check_complex_symlinks(BASE)
        File "Lib\test\test_pathlib.py", line 1994, in _check_complex_symlinks
          self.assertEqual(p, P)
      AssertionError: WindowsPath('D:/Users/Ivan/Documents/cpython_all/@test_2376_tmp') != WindowsPath('C:/Users/Ivan/Documents/cpython_all/@test_2376_tmp')

      ======================================================================
      FAIL: test_complex_symlinks_relative (main.WindowsPathTest)
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File "Lib\test\test_pathlib.py", line 2031, in test_complex_symlinks_relative
          self._check_complex_symlinks('.')
        File "Lib\test\test_pathlib.py", line 1994, in _check_complex_symlinks
          self.assertEqual(p, P)
      AssertionError: WindowsPath('D:/Users/Ivan/Documents/cpython_all/@test_2376_tmp') != WindowsPath('C:/Users/Ivan/Documents/cpython_all/@test_2376_tmp')

      ======================================================================
      FAIL: test_complex_symlinks_relative_dot_dot (main.WindowsPathTest)
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File "Lib\test\test_pathlib.py", line 2035, in test_complex_symlinks_relative_dot_dot
          self._check_complex_symlinks(os.path.join('dirA', '..'))
        File "Lib\test\test_pathlib.py", line 1994, in _check_complex_symlinks
          self.assertEqual(p, P)
      AssertionError: WindowsPath('D:/Users/Ivan/Documents/cpython_all/@test_2376_tmp') != WindowsPath('C:/Users/Ivan/Documents/cpython_all/@test_2376_tmp')

      ======================================================================
      FAIL: test_resolve_common (main.WindowsPathTest)
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File "Lib\test\test_pathlib.py", line 1491, in test_resolve_common
          os.path.join(BASE, 'foo'))
      AssertionError: 'D:\\Users\\Ivan\\Documents\\cpython_all\\@test_2376_tmp\\foo' != 'C:\\Users\\Ivan\\Documents\\cpython_all\\@test_2376_tmp\\foo'
      - D:\Users\Ivan\Documents\cpython_all\@test_2376_tmp\foo
      ? ^
      + C:\Users\Ivan\Documents\cpython_all\@test_2376_tmp\foo
      ? ^

      ======================================================================
      FAIL: test_resolve_dot (main.WindowsPathTest)
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File "Lib\test\test_pathlib.py", line 1550, in test_resolve_dot
          self.assertEqual(q.resolve(strict=True), p)
      AssertionError: WindowsPath('D:/Users/Ivan/Documents/cpython_all/@test_2376_tmp') != WindowsPath('C:/Users/Ivan/Documents/cpython_all/@test_2376_tmp')

      Ran 394 tests in 2.215s

      FAILED (failures=10, skipped=112)

    2. native-api
      added
      3.7 (EOL)end of lifeend of life
      3.8 (EOL)end of lifeend of life
      testsTests in the Lib/test dirTests in the Lib/test dir
      type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
      on Dec 10, 2017
    3. larryhastings commented on Jan 22, 2018

      @larryhastings
      larryhastings
      on Jan 22, 2018
      Contributor
      More actions

      Python 3.4 and 3.5 are in "security fixes only" mode. This is a minor bugfix, so it's too late to accept it into 3.4 and 3.5.

    4. ezio-melotti
      transferred this issue fromon Apr 10, 2022
    5. brettcannon
      added
      topic-pathlib
      on Jun 21, 2022
    6. barneygale
      added this to pathlib issueson Dec 2, 2023
    7. barneygale
      moved this to Todo in pathlib issueson Dec 4, 2023
    8. barneygale
      added
      OS-windows
      on Apr 20, 2024
    9. barneygale commented on Aug 10, 2024

      @barneygale
      barneygale
      on Aug 10, 2024
      Contributor
      More actions

      No longer reproducible, suspect this was fixed by GH-25264.

    10. barneygale
      closed this as completedon Aug 10, 2024
    11. github-project-automation
      moved this from Todo to Done in pathlib issueson Aug 10, 2024
    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.7 (EOL)end of lifeend of life3.8 (EOL)end of lifeend of lifeOS-windowstestsTests in the Lib/test dirTests in the Lib/test dirtopic-pathlibtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

      Projects

      • pathlib issues
        Status
        Done
        Show more project fields

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — 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.