Two more trivial fixes.
This commit is contained in:
parent
cd70eee244
commit
9afbb4e364
|
@ -50,7 +50,7 @@ class GroupDatabaseTestCase(unittest.TestCase):
|
|||
bynames[n] = g
|
||||
bygids[g] = n
|
||||
|
||||
allnames = bynames.keys()
|
||||
allnames = list(bynames.keys())
|
||||
namei = 0
|
||||
fakename = allnames[namei]
|
||||
while fakename in bynames:
|
||||
|
|
|
@ -55,7 +55,7 @@ class PwdTest(unittest.TestCase):
|
|||
bynames[n] = u
|
||||
byuids[u] = n
|
||||
|
||||
allnames = bynames.keys()
|
||||
allnames = list(bynames.keys())
|
||||
namei = 0
|
||||
fakename = allnames[namei]
|
||||
while fakename in bynames:
|
||||
|
|
Loading…
Reference in New Issue