mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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:
parent
1bdcadd610
commit
97df7b61f2
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue