# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2018-04-05 11:16:34 # Node ID 1d26f745a10b09ae800ab6005aaadde5019753f9 # Parent d3a2344446e6e2c298c3d6160de6d58d9bf94920 py3: use pycompat.bytestr in test-journal.t Differential Revision: https://phab.mercurial-scm.org/D3124 diff --git a/tests/test-journal.t b/tests/test-journal.t --- a/tests/test-journal.t +++ b/tests/test-journal.t @@ -3,7 +3,7 @@ Tests for the journal extension; records $ cat >> testmocks.py << EOF > # mock out procutil.getuser() and util.makedate() to supply testable values > import os - > from mercurial import util + > from mercurial import util, pycompat > from mercurial.utils import dateutil, procutil > def mockgetuser(): > return 'foobar' @@ -16,7 +16,7 @@ Tests for the journal extension; records > except IOError: > time = 0.0 > with open(filename, 'wb') as timef: - > timef.write(str(time)) + > timef.write(pycompat.bytestr(time)) > return (time, 0) > > procutil.getuser = mockgetuser