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.

Author gvanrossum
Recipients gvanrossum, pitrou
Date 2013-11-24.00:45:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1385253929.39.0.153589073777.issue19742@psf.upfronthosting.co.za>
In-reply-to
Content
When running test_pathlib on my OSX (10.8) laptop I get these errors:

======================================================================
ERROR: test_group (test.test_pathlib.PathTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/guido/cpython/Lib/test/test_pathlib.py", line 1332, in test_group
    name = grp.getgrgid(gid).gr_name
KeyError: 'getgrgid(): gid not found: 849048494'

======================================================================
ERROR: test_group (test.test_pathlib.PosixPathTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/guido/cpython/Lib/test/test_pathlib.py", line 1332, in test_group
    name = grp.getgrgid(gid).gr_name
KeyError: 'getgrgid(): gid not found: 849048494'

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

This is probably some kind of OSX quirk where st_gid is set to a group that's not in /etc/groups, because (except briefly during the reboot process) on OS X the /etc configuration files for users/groups do not provide the whole truth.

Sadly I don't know what API to use to get the group name.   "ls -l" doesn't seem to know either.  My home dir has that gid too, so it's not an isolated anomaly. It may well be some kind of corporate thing (it's not really "my" laptop. :-)
History
Date User Action Args
2013-11-24 00:45:29gvanrossumsetrecipients: + gvanrossum, pitrou
2013-11-24 00:45:29gvanrossumsetmessageid: <1385253929.39.0.153589073777.issue19742@psf.upfronthosting.co.za>
2013-11-24 00:45:29gvanrossumlinkissue19742 messages
2013-11-24 00:45:29gvanrossumcreate