Mercurial > hg-stable
view tests/mockblackbox.py @ 28737:a3a01194a337
pypy: fix overspecific test checks
Those tests check a bit too specific message in ImportError/SyntaxError.
Make test-hook and test-bad-extension pass on pypy
author | Maciej Fijalkowski <fijall@gmail.com> |
---|---|
date | Sun, 03 Apr 2016 08:26:57 +0100 |
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