Mercurial > hg
diff tests/test-journal-share.t @ 37120: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 | 9843e3d9f4b6 |
children | cb70be32f5f7 |
line wrap: on
line diff
--- a/tests/test-journal-share.t Sat Mar 24 15:09:33 2018 +0900 +++ b/tests/test-journal-share.t Sat Mar 24 15:10:51 2018 +0900 @@ -1,9 +1,10 @@ Journal extension test: tests the share extension support $ 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 procutil > def mockgetuser(): > return 'foobar' > @@ -18,7 +19,7 @@ > timef.write(str(time)) > return (time, 0) > - > util.getuser = mockgetuser + > procutil.getuser = mockgetuser > util.makedate = mockmakedate > EOF