diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-06-19 20:20:05 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-06-19 20:20:05 (GMT) |
commit | 97df7b61f2873ad78760efd5c0ce182ef07be9ee (patch) | |
tree | eae250f01facf8c8a652582d806a621e1a8acab4 /Lib/test | |
parent | 1bdcadd61017176f58880871f08b82ad814d0327 (diff) | |
download | cpython-97df7b61f2873ad78760efd5c0ce182ef07be9ee.zip cpython-97df7b61f2873ad78760efd5c0ce182ef07be9ee.tar.gz cpython-97df7b61f2873ad78760efd5c0ce182ef07be9ee.tar.bz2 |
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).
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_mailbox.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |