summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_pwd.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_pwd.py b/Lib/test/test_pwd.py
index 1c2208d..2fc8da8 100644
--- a/Lib/test/test_pwd.py
+++ b/Lib/test/test_pwd.py
@@ -59,10 +59,10 @@ except KeyError:
else:
print 'fakename', fakename, 'did not except pwd.getpwnam()'
-uids = byuids.keys()
-uids.sort()
-uids.reverse()
-fakeuid = uids[0] + 1
+# Choose a non-existant uid.
+fakeuid = 4127
+while byuids.has_key(fakeuid):
+ print 'fakeuid =', fakeuid
try:
pwd.getpwuid(fakeuid)