D3124: py3: use pycompat.bytestr in test-journal.t

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Thu Apr 5 09:48:00 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG1d26f745a10b: py3: use pycompat.bytestr in test-journal.t (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3124?vs=7707&id=7723

REVISION DETAIL
  https://phab.mercurial-scm.org/D3124

AFFECTED FILES
  tests/test-journal.t

CHANGE DETAILS

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 @@
   $ 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



To: pulkit, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list