Commit 97df7b61 authored by Jack Jansen's avatar Jack Jansen

The test used int(time.time()) to get a random number, but this doesn't work...

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).
parent 1bdcadd6
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment