Patchwork D2140: py3: fix file i/o in test-status.t

login
register
mail settings
Submitter phabricator
Date Feb. 12, 2018, 1:39 a.m.
Message ID <deb61c90d34e6e5ab575c14c00f69ccc@localhost.localdomain>
Download mbox | patch
Permalink /patch/27606/
State Not Applicable
Headers show

Comments

phabricator - Feb. 12, 2018, 1:39 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGc1e01b1d5543: py3: fix file i/o in test-status.t (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2140?vs=5425&id=5441

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

AFFECTED FILES
  tests/test-status.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-status.t b/tests/test-status.t
--- a/tests/test-status.t
+++ b/tests/test-status.t
@@ -465,12 +465,12 @@ 
 
   $ hg init repo5
   $ cd repo5
-  >>> open("010a", "wb").write("\1\nfoo")
+  >>> open("010a", r"wb").write(b"\1\nfoo")
   $ hg ci -q -A -m 'initial checkin'
   $ hg status -A
   C 010a
 
-  >>> open("010a", "wb").write("\1\nbar")
+  >>> open("010a", r"wb").write(b"\1\nbar")
   $ hg status -A
   M 010a
   $ hg ci -q -m 'modify 010a'