Patchwork D7938: py3: string normalization and I/O tweaks in test-lfs.t

login
register
mail settings
Submitter phabricator
Date Jan. 20, 2020, 2:20 p.m.
Message ID <419865d0357e2327b309b8dab35a2ee2@localhost.localdomain>
Download mbox | patch
Permalink /patch/44528/
State Not Applicable
Headers show

Comments

phabricator - Jan. 20, 2020, 2:20 p.m.
Closed by commit rHG2928d5af6281: py3: string normalization and I/O tweaks in test-lfs.t (authored by indygreg).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7938?vs=19442&id=19456

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7938/new/

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

AFFECTED FILES
  tests/test-lfs.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-lfs.t b/tests/test-lfs.t
--- a/tests/test-lfs.t
+++ b/tests/test-lfs.t
@@ -810,8 +810,11 @@ 
 blob, and the output shows that it isn't fetched.
 
   $ cat > $TESTTMP/lfsrename.py <<EOF
+  > import sys
+  > 
   > from mercurial import (
   >     exthelper,
+  >     pycompat,
   > )
   > 
   > from hgext.lfs import (
@@ -829,7 +832,10 @@ 
   >         rawtext = self._revlog.rawdata(node)
   >         metadata = pointer.deserialize(rawtext)
   >         print('lfs blob %s renamed %s -> %s'
-  >               % (metadata[b'oid'], ret[0], self._revlog.filename))
+  >               % (pycompat.sysstr(metadata[b'oid']),
+  >                  pycompat.sysstr(ret[0]),
+  >                  pycompat.fsdecode(self._revlog.filename)))
+  >         sys.stdout.flush()
   >     return ret
   > EOF