This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Test subprocess fails on Fedora 30: test_group and test_extra_groups
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.9
process
Status: closed Resolution: fixed
Dependencies: Superseder: subprocess: add user, group and extra_groups parameters
View: 36046
Assigned To: Nosy List: gregory.p.smith, umoqnier, xtreak
Priority: normal Keywords:

Created on 2019-09-15 21:37 by umoqnier, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (5)
msg352495 - (view) Author: Diego Barriga (umoqnier) * Date: 2019-09-15 21:37
======================================================================
ERROR: test_extra_groups (test.test_subprocess.POSIXProcessTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/umoqnier/develop/python-dev/cpython/Lib/test/test_subprocess.py", line 1840, in test_extra_groups
    output = subprocess.check_output(
  File "/home/umoqnier/develop/python-dev/cpython/Lib/subprocess.py", line 419, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/home/umoqnier/develop/python-dev/cpython/Lib/subprocess.py", line 497, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/home/umoqnier/develop/python-dev/cpython/Lib/subprocess.py", line 889, in __init__
    gids.append(grp.getgrnam(extra_group).gr_gid)
KeyError: "getgrnam(): name not found: 'nogroup'"

======================================================================
ERROR: test_group (test.test_subprocess.POSIXProcessTestCase) (group='nogroup')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/umoqnier/develop/python-dev/cpython/Lib/test/test_subprocess.py", line 1800, in test_group
    output = subprocess.check_output(
  File "/home/umoqnier/develop/python-dev/cpython/Lib/subprocess.py", line 419, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/home/umoqnier/develop/python-dev/cpython/Lib/subprocess.py", line 497, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/home/umoqnier/develop/python-dev/cpython/Lib/subprocess.py", line 862, in __init__
    gid = grp.getgrnam(group).gr_gid
KeyError: "getgrnam(): name not found: 'nogroup'"

----------------------------------------------------------------------

Ran 306 tests in 26.423s

FAILED (errors=2, skipped=31)
test test_subprocess failed

== Tests result: FAILURE ==

1 test failed:
    test_subprocess

Total duration: 26 sec 676 ms
Tests result: FAILURE
msg352496 - (view) Author: Diego Barriga (umoqnier) * Date: 2019-09-15 21:39
$  cat /etc/os-release 
NAME=Fedora
VERSION="30 (Workstation Edition)"
ID=fedora
VERSION_ID=30
VERSION_CODENAME=""
PLATFORM_ID="platform:f30"
PRETTY_NAME="Fedora 30 (Workstation Edition)"
ANSI_COLOR="0;34"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:30"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f30/system-administrators-guide/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=30
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=30
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Workstation Edition"
VARIANT_ID=workstation
msg352545 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2019-09-16 14:12
I think this should be fixed now as reported in https://bugs.python.org/issue36046#msg352235 . Can you please try the latest master branch?
msg352647 - (view) Author: Diego Barriga (umoqnier) * Date: 2019-09-17 16:09
That's right. The test result was success on latest master. Should i close this issue?
msg352652 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2019-09-17 16:55
Thanks for the confirmation. I am closing this as per issue36046.
History
Date User Action Args
2022-04-11 14:59:20adminsetgithub: 82360
2019-09-17 16:55:23xtreaksetstatus: open -> closed
superseder: subprocess: add user, group and extra_groups parameters
messages: + msg352652

resolution: fixed
stage: resolved
2019-09-17 16:09:39umoqniersetmessages: + msg352647
2019-09-16 14:12:24xtreaksetnosy: + gregory.p.smith, xtreak
messages: + msg352545
2019-09-15 21:39:17umoqniersetmessages: + msg352496
2019-09-15 21:37:34umoqniercreate