Mercurial > hg
view tests/mockblackbox.py @ 28738:706f4ab710c8
py3: lexicographical order imports and print_function in test-context.py
author | Robert Stanca <robert.stanca7@gmail.com> |
---|---|
date | Sun, 03 Apr 2016 16:34:55 +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