Patchwork D2893: py3: make tests/test-log-linerange.t work on Python 3

login
register
mail settings
Submitter phabricator
Date March 19, 2018, 1:46 p.m.
Message ID <88418e031ef5a3f6c44d9e7b42fc9c6c@localhost.localdomain>
Download mbox | patch
Permalink /patch/29625/
State Not Applicable
Headers show

Comments

phabricator - March 19, 2018, 1:46 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG0baf0e3ee569: py3: make tests/test-log-linerange.t work on Python 3 (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2893?vs=7098&id=7111

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

AFFECTED FILES
  tests/test-log-linerange.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-log-linerange.t b/tests/test-log-linerange.t
--- a/tests/test-log-linerange.t
+++ b/tests/test-log-linerange.t
@@ -871,7 +871,7 @@ 
 Binary files work but without diff hunks filtering.
 (Checking w/ and w/o diff.git option.)
 
-  >>> open('binary', 'wb').write('this\nis\na\nbinary\0')
+  >>> open('binary', 'wb').write(b'this\nis\na\nbinary\0') and None
   $ hg add binary
   $ hg ci -m 'add a binary file' --quiet
   $ hg log -f -L binary,1:2 -p