Opened 2 years ago

Last modified 2 years ago

#5778 defect new

test_gidFromGroupnameString: fails with large gid

Reported by: j2a Owned by:
Priority: normal Milestone:
Component: core Keywords:
Cc: Branch:
Author: Launchpad Bug:

Description

Traceback (most recent call last):
  File "/Users/yyurevich/twisted-meetup/Sprint/Twisted/twisted/python/test/test_util.py", line 115, in test_gidFromGroupnameString
    grent = grp.getgrgid(os.getgid())
exceptions.KeyError: 'getgrgid(): gid not found: 1117076509'

twisted.python.test.test_util.UtilTestCase.test_gidFromGroupnameString
===============================================================================
[ERROR]
Traceback (most recent call last):
  File "/Users/yyurevich/twisted-meetup/Sprint/Twisted/twisted/test/test_twistd.py", line 562, in test_applicationStartsWithConfiguredNameIDs
    patchUserDatabase(self.patch, user, uid, group, gid)
  File "/Users/yyurevich/twisted-meetup/Sprint/Twisted/twisted/test/test_twistd.py", line 106, in patchUserDatabase
    grent = grp.getgrgid(os.getgid())
exceptions.KeyError: 'getgrgid(): gid not found: 1117076509'

twisted.test.test_twistd.ApplicationRunnerTest.test_applicationStartsWithConfiguredNameIDs
-------------------------------------------------------------------------------

Actual group id is 10-digit:

>>> import os
>>> os.getgid()
1117076509

Change History (1)

comment:1 Changed 2 years ago by j2a

Tests running on Mac computer being in the ActiveDirectory domain, but does't have connection to it at that particular moment. Actual code failing is:

>>> import os, grp
>>> os.getgid()
1117076509
>>> grp.getgrgid(os.getgid())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
KeyError: 'getgrgid(): gid not found: 1117076509'
Note: See TracTickets for help on using tickets.