~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testhashcache.py

  • Committer: Robert Collins
  • Date: 2005-09-28 05:37:53 UTC
  • mfrom: (1092.3.4)
  • mto: This revision was merged to the branch mainline in revision 1397.
  • Revision ID: robertc@robertcollins.net-20050928053753-68e6e4c0642eccea
merge from symlink branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
 
17
import os
 
18
import time
17
19
from bzrlib.selftest import TestCaseInTempDir
18
20
 
19
21
 
24
26
 
25
27
 
26
28
def pause():
27
 
    import time
 
29
    if os.name == 'nt':
 
30
        time.sleep(3)
 
31
        return
28
32
    # allow it to stabilize
29
33
    start = int(time.time())
30
34
    while int(time.time()) == start: