FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-149879: Fix test_grp on Cygwin by vstinner · Pull Request #150495 · python/cpython · GitHub

Repository navigation

gh-149879: Fix test_grp on Cygwin - #150495

Merged
vstinner merged 1 commit into
python:mainfrom
vstinner:test_grp
May 26, 2026
Merged

vstinner merged 1 commit into
python:mainfrom
vstinner:test_grp

Conversation

vstinner commented May 26, 2026 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

bedevere-app Bot added the tests Tests in the Lib/test dir label May 26, 2026
bedevere-app Bot mentioned this pull request May 26, 2026

Copy link
Copy Markdown
Member Author

Example of failure on Windows 11:

ERROR: test_values_extended (test.test_grp.GroupDatabaseTestCase.test_values_extended)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/vstinner/cpython/Lib/test/test_grp.py", line 38, in test_values_extended
    e2 = grp.getgrgid(e.gr_gid)
KeyError: 'getgrgid(): gid not found: 328384'

The group causing the issue is the NT SERVICE+TrustedInstaller group.

$ ./python.exe
>>> import grp
>>> entries = grp.getgrall()
>>> entries[18]
grp.struct_group(gr_name='NT SERVICE+TrustedInstaller', gr_passwd='S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464', gr_gid=328384, gr_mem=[])
>>> len(entries)
19

vstinner enabled auto-merge (squash) May 26, 2026 20:47
vstinner merged commit 776573c into python:main May 26, 2026
95 of 97 checks passed
vstinner deleted the test_grp branch May 26, 2026 21:16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL