From 97df7b61f2873ad78760efd5c0ce182ef07be9ee Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Tue, 19 Jun 2001 20:20:05 +0000 Subject: 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). --- Lib/test/test_mailbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_mailbox.py b/Lib/test/test_mailbox.py index b9887ca..57a8316 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) -- cgit v0.12