[Python-checkins] CVS: python/dist/src/Lib/test test_mailbox.py,1.5,1.6

Jack Jansen jackjansen@users.sourceforge.net
Tue, 19 Jun 2001 13:20:07 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv31019/Python/Lib/test

Modified Files:
	test_mailbox.py 
Log Message:
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).

Index: test_mailbox.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_mailbox.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** test_mailbox.py	2001/05/22 16:29:01	1.5
--- test_mailbox.py	2001/06/19 20:20:05	1.6
***************
*** 40,44 ****
  
      def createMessage(self, dir):
!         t = int(time.time())
          pid = self._counter
          self._counter += 1
--- 40,44 ----
  
      def createMessage(self, dir):
!         t = int(time.time() % 1000000)
          pid = self._counter
          self._counter += 1