view tests/mockblackbox.py @ 28283:544444991c83

hghave: use print function For Python 3 compatibility.
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 27 Feb 2016 21:19:53 -0800
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