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).

This commit is contained in:
Jack Jansen 2001-06-19 20:20:05 +00:00
parent 1bdcadd610
commit 97df7b61f2

View file

@ -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)