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

login
register
mail settings
Submitter phabricator
Date April 5, 2018, 1:48 p.m.
Message ID <f8417adcd5ee37de2cde9e18346b3441@localhost.localdomain>
Download mbox | patch
Permalink /patch/30367/
State Not Applicable
Headers show

Comments

phabricator - April 5, 2018, 1:48 p.m.
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




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

Patch

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