changeset 37364:1d26f745a10b

py3: use pycompat.bytestr in test-journal.t Differential Revision: https://phab.mercurial-scm.org/D3124
author Pulkit Goyal <7895pulkit@gmail.com>
date Thu, 05 Apr 2018 16:46:34 +0530
parents d3a2344446e6
children 1ccd75027abb
files tests/test-journal.t
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-journal.t	Wed Apr 04 23:55:47 2018 -0700
+++ b/tests/test-journal.t	Thu Apr 05 16:46:34 2018 +0530
@@ -3,7 +3,7 @@
   $ 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 @@
   >     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