From: Jack Jansen Date: Tue, 19 Jun 2001 20:20:05 +0000 (+0000) Subject: The test used int(time.time()) to get a random number, but this doesn't work on the... X-Git-Tag: v2.2a3~1510 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=97df7b61f2873ad78760efd5c0ce182ef07be9ee;p=thirdparty%2FPython%2Fcpython.git The test used int(time.time()) to get a random number, but this doesn't work on the mac (where times are bigger than ints). Changed to int(time.time()%1000000). --- diff --git a/Lib/test/test_mailbox.py b/Lib/test/test_mailbox.py index b9887ca7e7dc..57a831631e11 100644 --- a/Lib/test/test_mailbox.py +++ b/Lib/test/test_mailbox.py @@ -39,7 +39,7 @@ class MaildirTestCase(unittest.TestCase): os.rmdir(self._dir) def createMessage(self, dir): - t = int(time.time()) + t = int(time.time() % 1000000) pid = self._counter self._counter += 1 filename = "%s.%s.myhostname.mydomain" % (t, pid)