From: Guido van Rossum Date: Tue, 20 May 1997 19:32:22 +0000 (+0000) Subject: More robust way of choosing a non-existant uid (faster, too). X-Git-Tag: v1.5a3~515 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=462d6e6484626ff8b7a79e43f3d6c64e0120bdf9;p=python More robust way of choosing a non-existant uid (faster, too). (Correct version -- the previous checkin was a keyboard slip.) --- diff --git a/Lib/test/test_pwd.py b/Lib/test/test_pwd.py index 2fc8da8a59..d9006861b6 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)