Mercurial > hg
view tests/mockblackbox.py @ 28418:121d25719e92
setup: switch to with open as
We're leaving the modulepolicy bit alone, because it's being
rewritten in the next commit.
author | timeless <timeless@mozdev.org> |
---|---|
date | Wed, 09 Mar 2016 15:35:57 +0000 |
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