summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-05-20 19:32:22 (GMT)
committerGuido van Rossum <guido@python.org>1997-05-20 19:32:22 (GMT)
commit462d6e6484626ff8b7a79e43f3d6c64e0120bdf9 (patch)
treeae8b00cd385fc4fc7c2d7515f7c74790232580f9 /Lib
parent6308d510e954ad1076b579d91e42874de6a0bcde (diff)
downloadcpython-462d6e6484626ff8b7a79e43f3d6c64e0120bdf9.zip
cpython-462d6e6484626ff8b7a79e43f3d6c64e0120bdf9.tar.gz
cpython-462d6e6484626ff8b7a79e43f3d6c64e0120bdf9.tar.bz2
More robust way of choosing a non-existant uid (faster, too).
(Correct version -- the previous checkin was a keyboard slip.)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_pwd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_pwd.py b/Lib/test/test_pwd.py
index 2fc8da8..d900686 100644
--- a/Lib/test/test_pwd.py
+++ b/Lib/test/test_pwd.py
@@ -62,7 +62,7 @@ else:
# Choose a non-existant uid.
fakeuid = 4127
while byuids.has_key(fakeuid):
- print 'fakeuid =', fakeuid
+ fakeuid = (fakeuid * 3) % 0x10000
try:
pwd.getpwuid(fakeuid)