# HG changeset patch # User Pulkit Goyal # Date 2019-02-01 23:19:42 # Node ID 587a3c976892c66e7028cfe01322ef1d129abff5 # Parent 210a999bd66846b6eb980eb0915f3846e2aced47 py3: pass str into grp.getgrnam grp.getgrnam expects str on Python 3. This fixes test-acl.t on Python 3. Differential Revision: https://phab.mercurial-scm.org/D5794 diff --git a/contrib/python3-whitelist b/contrib/python3-whitelist --- a/contrib/python3-whitelist +++ b/contrib/python3-whitelist @@ -5,6 +5,7 @@ test-absorb-phase.t test-absorb-rename.t test-absorb-strip.t test-absorb.t +test-acl.t test-add.t test-addremove-similar.t test-addremove.t diff --git a/mercurial/posix.py b/mercurial/posix.py --- a/mercurial/posix.py +++ b/mercurial/posix.py @@ -583,6 +583,7 @@ def groupmembers(name): """Return the list of members of the group with the given name, KeyError if the group does not exist. """ + name = pycompat.sysstr(name) return list(grp.getgrnam(name).gr_mem) def spawndetached(args):