Mercurial > hg
view tests/mockblackbox.py @ 28791:277b4e6938fa
pypy: fix setdiscovery test
This test relies on the exact details of random.sample given the
seed. Things work a bit differently under pypy, make the test less
specific.
author | Maciej Fijalkowski <fijall@gmail.com> |
---|---|
date | Tue, 05 Apr 2016 14:44:18 +0300 |
parents | ac49ecb2a897 |
children | 417380aa5bbe |
line wrap: on
line source
from mercurial import util def makedate(): return 0, 0 def getuser(): return 'bob' def getpid(): return 5000 # mock the date and user apis so the output is always the same def uisetup(ui): util.makedate = makedate util.getuser = getuser util.getpid = getpid