##// END OF EJS Templates
py3: use multi-line import in test-wireproto.py...
py3: use multi-line import in test-wireproto.py The reason I did it is that I had a later commit that was adding to the list.

File last commit:

r28028:ac49ecb2 default
r28860:50d11dd8 default
Show More
mockblackbox.py
14 lines | 284 B | text/x-python | PythonLexer
Gregory Szorc
tests: move mock blackbox extension into own file...
r24705 from mercurial import util
def makedate():
return 0, 0
def getuser():
return 'bob'
timeless
tests: mock getpid to reduce glob usage...
r28028 def getpid():
return 5000
Gregory Szorc
tests: move mock blackbox extension into own file...
r24705
# mock the date and user apis so the output is always the same
def uisetup(ui):
util.makedate = makedate
util.getuser = getuser
timeless
tests: mock getpid to reduce glob usage...
r28028 util.getpid = getpid