Skip to content

test_sysconfig: test_user_similar() fails if sys.platlibdir is 'lib64' #89299

Closed

Description

@vstinner
BPO 45136
Nosy @vstinner, @merwok, @encukou, @ambv, @dstufft, @uranusjr, @hroncok, @frenzymadness, @pablogsal, @miss-islington
Superseder
  • bpo-44860: sysconfig's posix_user scheme has different platlib value to distutils's unix_user
  • 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-09-09.09:54:05.989>
    created_at = <Date 2021-09-08.10:46:29.801>
    labels = ['release-blocker', 'tests', '3.10', '3.11']
    title = "test_sysconfig: test_user_similar() fails if sys.platlibdir is 'lib64'"
    updated_at = <Date 2021-09-09.09:54:05.988>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2021-09-09.09:54:05.988>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-09-09.09:54:05.989>
    closer = 'vstinner'
    components = ['Tests']
    creation = <Date 2021-09-08.10:46:29.801>
    creator = 'vstinner'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 45136
    keywords = []
    message_count = 7.0
    messages = ['401372', '401374', '401375', '401376', '401416', '401449', '401454']
    nosy_count = 10.0
    nosy_names = ['vstinner', 'eric.araujo', 'petr.viktorin', 'lukasz.langa', 'dstufft', 'uranusjr', 'hroncok', 'frenzy', 'pablogsal', 'miss-islington']
    pr_nums = []
    priority = 'release blocker'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '44860'
    type = None
    url = 'https://bugs.python.org/issue45136'
    versions = ['Python 3.10', 'Python 3.11']

    Activity

    1. vstinner commented on Sep 8, 2021

      @vstinner
      MemberAuthor

      When Python is configured to use 'lib64' for sys.platlibdir, test_sysconfig fails:

      $ ./configure --with-platlibdir=lib64
      $ make
      $ ./python -m test -v test_sysconfig 

      ======================================================================
      FAIL: test_user_similar (test.test_sysconfig.TestSysConfig)
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File "/home/vstinner/python/main/Lib/test/test_sysconfig.py", line 299, in test_user_similar
          self.assertEqual(user_path, global_path.replace(base, user, 1))
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      AssertionError: '/home/vstinner/.local/lib/python3.11/site-packages' != '/home/vstinner/.local/lib64/python3.11/site-packages'
      - /home/vstinner/.local/lib/python3.11/site-packages
      + /home/vstinner/.local/lib64/python3.11/site-packages
      ?                          ++
    2. added
      3.11only security fixes
      testsTests in the Lib/test dir
      on Sep 8, 2021
    3. hroncok commented on Sep 8, 2021

      hroncokmannequin
      Mannequin

      This was introduced in bpo-44860.

    4. vstinner commented on Sep 8, 2021

      @vstinner
      MemberAuthor

      This was introduced in bpo-44860.

      Right. Reverting the commit 608a629 (bpo-44860) fix the test.

      The test should be updated.

    5. vstinner commented on Sep 8, 2021

      @vstinner
      MemberAuthor

      I mark this issue as a release blocker: it would be *nice* to fix it before Python 3.10.0 final ;-)

    6. hroncok commented on Sep 8, 2021

      hroncokmannequin
      Mannequin

      Fix was proposed in #28235 but references the original bpi number.

    7. hroncok commented on Sep 9, 2021

      hroncokmannequin
      Mannequin

      The 3.10 backport is in #28251

    8. vstinner commented on Sep 9, 2021

      @vstinner
      MemberAuthor

      I mark this issue as a duplicate of bpo-44860.

    9. transferred this issue fromon Apr 10, 2022
    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

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions