Mercurial > hg-stable
diff tests/test-journal.t @ 37123:a8a902d7176e
procutil: bulk-replace function calls to point to new module
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 24 Mar 2018 15:10:51 +0900 |
parents | c6061cadb400 |
children | 1d26f745a10b |
line wrap: on
line diff
--- a/tests/test-journal.t Sat Mar 24 15:09:33 2018 +0900 +++ b/tests/test-journal.t Sat Mar 24 15:10:51 2018 +0900 @@ -1,10 +1,10 @@ Tests for the journal extension; records bookmark locations. $ cat >> testmocks.py << EOF - > # mock out util.getuser() and util.makedate() to supply testable values + > # mock out procutil.getuser() and util.makedate() to supply testable values > import os > from mercurial import util - > from mercurial.utils import dateutil + > from mercurial.utils import dateutil, procutil > def mockgetuser(): > return 'foobar' > @@ -19,7 +19,7 @@ > timef.write(str(time)) > return (time, 0) > - > util.getuser = mockgetuser + > procutil.getuser = mockgetuser > dateutil.makedate = mockmakedate > EOF