##// END OF EJS Templates
tests: fix builtin module test on pypy...
tests: fix builtin module test on pypy On pypy datetime and cProfile are modules written in Python, not in C. For the purpose of this test, just list them explicitely as builtins, which silences warnings about them being imported before stdlib modules.

File last commit:

r28028:ac49ecb2 default
r28713:806d260c 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