Skip to content

test_posix fails when os.getpgrp() is missing #100046

@vstinner

Description

@vstinner

On "x86 Gentoo Installed with X 3.x" buildbot worker, the C function getpgrp() is not longer available: configure output checking for getpgrp... yes of build 3488 became checking for getpgrp... no in the next build 3489.

Problem: when os.getpgrp() is missing, test_posix fails with:

======================================================================
ERROR: test_setpgroup (test.test_posix.TestPosixSpawn.test_setpgroup)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.12/test/test_posix.py", line 1654, in test_setpgroup
    setpgroup=os.getpgrp()
              ^^^^^^^^^^
AttributeError: module 'os' has no attribute 'getpgrp'. Did you mean: 'setpgrp'?

======================================================================
ERROR: test_setpgroup (test.test_posix.TestPosixSpawnP.test_setpgroup)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.12/test/test_posix.py", line 1654, in test_setpgroup
    setpgroup=os.getpgrp()
              ^^^^^^^^^^
AttributeError: module 'os' has no attribute 'getpgrp'. Did you mean: 'setpgrp'?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions